1.0.5 • Published 7 years ago
@remshams/react-context-router v1.0.5
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>
</>
);
};