Skip to content

Too lazy to rewrite it all the time, so here it is - simple private route(might or might not be based on https://reacttraining.com/react-router/web/example/auth-workflow)

License

Notifications You must be signed in to change notification settings

muningis/react-router-private-route

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Router Private Route

Example

<Router>
  <div>
    <PrivateRoute path="/" auth={Math.random() > Math.random()} redirect={"/login"} component={loadable(() => import("./pages/home"))} />
    <Route exact path="/login" component={loadable(() => import("./pages/login"))} />
  </div>
</Router>

Readme is heavily W.I.P. ...

About

Too lazy to rewrite it all the time, so here it is - simple private route(might or might not be based on https://reacttraining.com/react-router/web/example/auth-workflow)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published