Scalable Protected Routes with React Router

How to reroute users to a public login page when they try to access protected routes.

Background