@react-mini/router
v1.0.47
Published
Implements the most basic functionality of react-router with a bundle size of 7.8kB.
Downloads
9
Readme
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)