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)