simple-static-react-router
v0.0.12
Published
Simple static routing components for React
Downloads
1
Readme
Simple react router
Installation
npm i simple-static-react-router
Example usage:
<div className="App">
<Router>
<Route path="/:user?">
{...reactComponents}
</Route>
<Route path="/:user?/:user2?">
{...reactComponents}
</Route>
</Router>
</div>
Path
Path regex uses: https://github.com/pillarjs/path-to-regexp
Params
Path parameters available in context.router.params