router-handler

React Routing Component for npm

Usage no npm install needed!

<script type="module">
  import routerHandler from 'https://cdn.skypack.dev/router-handler';
</script>

README

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.