Skip to content

PiterWeb/ReverRouter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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