Skip to content

Latest commit

History

History
25 lines (17 loc) 路 563 Bytes

File metadata and controls

25 lines (17 loc) 路 563 Bytes

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
});