<Route component={() =>
<ProtectedRoutes isAuthenticated={isAuthenticated} setIsAuthenticated={setIsAuthenticated}>
<Route path="/" component={Home} />
<Route path="/some-route" component={SomeRoute} />
<Route path="/some-other-route" component={SomeOtherRoute} />
</ProtectedRoutes>
}
/>