Q:

How to control routing for protected pages in React app?

Do I need check auth in every protected page container and if it false redirect to login page? what can i do if i have a lot of protected pages? 

A:

You can use a Higher order component (HOC) for your router. use a PrivateRouter hoc.
const PrivateRoute = ({ component: Component, ...rest }) => (
  <Route {...rest} render={(props) => (
    fakeAuth.isAuthenticated === true
      ? <Component {...props} />
      : <Redirect to='/login' />
  )} />
) 

use this instead of route.
<PrivateRoute component={component} {...props} />

