react-with-params
React HOC for extracting router params.
Install
yarn add react-with-params
npm install --save react-with-params
Usage
Route exact path='/user/:name' component= /
Route exact path='/user/:name/:id' component= /
License
react-with-params is dual-licensed under Apache 2.0 and MIT terms.