An open API service indexing awesome lists of open source software.

https://github.com/piterweb/reverrouter

<1kb ReverUI Router
https://github.com/piterweb/reverrouter

react react-router rever rever-router reverouter reverrouter reverui

Last synced: 3 months ago
JSON representation

<1kb ReverUI Router

Awesome Lists containing this project

README

        

![](https://badgen.net/bundlephobia/minzip/reverouter)

# Rever(r)outer 📦

The router for [ReverUI](https://github.com/PiterWeb/ReverUI/)

### Install it using
$ npm i reverouter

### Example

```ts
// 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
});

```