FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

PiterWeb/ReverRouter: <1kb ReverUI Router · GitHub

Latest commit

 

History

19 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Used by

Contributors

Languages


Back | FazBrowse Home | New Git URL