match-routes-to-location
v0.0.4
Published
Extracted matchRoutesToLocation from React Router 4 to be used with React Router 3
Downloads
6
Readme
match-routes-to-location
Extracted from React Router 4 to be used with React Router 3
When using React Router 3 for SSR, it can be tricky to access the currently matched route for performing specific operations. React Router 4's routes addons seem to fix this problem, but unfortunately there's nothing available for React Router 3.
This package exports a single function, matchRoutesToLocation
. For more information
on its use, see the official docs,
but note that the usage might change over time.
Installation
npm install -g yarn
yarn install match-routes-to-location