0.1.2 • Published 5 years ago
router-handler v0.1.2
What is this?
Implement the perfect routing for the beginner.
Installation
npm i routing-handler --save
Then...
...
import {HandleRoutes} from "HandleRoutes";
<Suspense fallback={Loading....}>
{
HandleRoutes(
authenticated,
ls.get('token'),
Main,
Auth,
privateRoutes,
authRoutes,
'/dashboard',
'/login')
}
Uses
For Dynamically routing.