a lightweight react component to setup routing quickly

Usage no npm install needed!

<script type="module">
  import abdulghaniRouterhelper from 'https://cdn.skypack.dev/@abdulghani/routerhelper';


Router helper component

to setup router with config quickly


  // other imports
  import Router from "@abdulghani/routerhelper";
  import myRoutes from "somewhere";

  // usage
  const RouteApp = () => {
    return (
      <Router routes={myRoutes} fallback={<>Please Wait</>}>
  // fallback are optional

routes prop are array of these object

  • path
  • exact
  • component (able to use react lazy for lazy loading)