Skip to content

Latest commit

 

History

History

bau-router

BauRouter

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 ...

Bundle size

Let's compare the bundle sizes thanks to bundlephobia:

bau-router gzip size

universal-router gzip size

vue-router gzip size

react-router-dom gzip size

Workflow

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.

Contribution

Bugs and suggestion can be discussed on its GitHub project page.