/ReverRouter

<1kb ReverUI Router

Primary LanguageTypeScriptMIT LicenseMIT

Rever(r)outer 📦

The router for ReverUI

Install it using

$ npm i reverouter

Example

// main.ts

import { $UI } from "reverui"; 
import { $lazy, $Router } from "reverouter";

$Router($UI ,{
	"/": () => import("./Banner"), // Normal Route
	"/todo": $lazy(() => import("./Todo")), // Lazy Route
	"/counter": $lazy(() => import("./Counter")), // Lazy Route
	"/counter-with-hook": $lazy(() => import("./CounterWithHook")), // Lazy Route
});