1.0.2 • Published 6 years ago
protected-route v1.0.2
protected-route ============================ A Route component that redirects unauthenticated users.
Example
import ProtectedRoute from "protected-route";
<Switch>
<ProtectedRoute
isAllowed
redirectToPath="/login"
path="/"
component={Dashboard}
/>
<Route
path="/login"
render={Login}
/>
</Switch>