react-router-private-route
v0.0.3
Published
``` <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"))} /> </d
Downloads
12
Readme
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>