reverouter
v2.1.1
Published
Effortless Routing for ReverUI
Downloads
11
Maintainers
Readme
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
});