0.0.3 • Published 6 years ago
react-router-private-route v0.0.3
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>