react-router-magic
v0.6.7
Published
Like react-router but with magic inside
Maintainers
Readme
React Router Magic
Like react-router but with magic inside
Yet another Router for React. It has an API similar to react-router exept matching is not include and it use context to bypass SCU blocked update.
This package is not Production ready !
This package is under developement, do not use it in production.
Why this package
This package is highly inspired by react-router but it differ in two major way:
- The
locationis passed via context even ifshouldComponentUpdateis implemented : We use a subscribtion system to make sure allRouteare updated when thelocationchanges. - The path matching logic is not include : instead of manipulating paths as string like in
react-router,react-router-magicexpect a match function(location: Location, parentMatch: Match) => Result. This mean you can use whatever logic you want to match paths. If you want something similar to whatreact-routerdoes, you can use path-pattern.
Prerequisites
You need NodeJS and NPM or Yarn.
Installing
npm install react-router-magic --saveor
yarn add react-router-magicTODO
Versioning
We use SemVer for versioning. For the versions available, see the releases on this repository.
License
This project is licensed under the MIT License - see the LICENSE.md file for details
