match-routes-to-location

0.0.4 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i match-routes-to-location

Weekly Downloads

3

Version

0.0.4

License

MIT

Last publish

Collaborators

  • damassi