@remshams/react-context-router
v1.0.5
Published
Context based react router
Downloads
7
Readme
React Router
React Router based on the new Context API
Features
- Nested Routes
- Param pathing
Installation
npm install react-context-router --save
yarn add react-context-router
Usage
const Child = () => (
<div>Child</div>
);
const Parent = () => (
<Route path="child" Component={Child}/>
);
const App = () => {
return (
<>
<Router>
<Route path="parent" Component={Parent}/>
</Router>
</>
);
};