A Router for the browser in 75 lines of code with the following features:
- Nested route
- Layout support
- Asynchronous loading
bau-router is framework agnostic and integrates with Bau, React, Preact, SolidJs etc ...
Let's compare the bundle sizes thanks to bundlephobia:
Install the dependencies:
npm install @grucloud/bau-router
Import @grucloud/bau-router
import BauRouter from "@grucloud/bau-router";
The following example demonstrates how to use this router with the Bau reactive library.
Bugs and suggestion can be discussed on its GitHub project page.