@react-mini/router
TypeScript icon, indicating that this package has built-in type declarations

1.0.47 • Public • Published

Implements the most basic functionality of react-router with a bundle size of 7.8kB.

It allows to configure nested routing.

Components to use:

- <Link>
- <Menu>
- <Route>

Menu + Route Example:

<Menu nestLevel={0}>
  <Route path="" component={Home}></Route>
  <Route path="catalog" component={CatalogApp}></Route>
  <Route path="about" component={About}></Route>
</Menu>

Link Example:

<Link path={link.path}>{link.label}</Link>

PROPS:

Link component

  • Props: navLevel (the routing nested level)

Route component

  • Props: path, component

Menu component

  • Props: nestLevel (the routing nested level)

Readme

Keywords

none

Package Sidebar

Install

npm i @react-mini/router

Weekly Downloads

1

Version

1.0.47

License

MIT

Unpacked Size

9.33 kB

Total Files

18

Last publish

Collaborators

  • mane936