0.6.7 • Published 4 years ago

react-router-magic v0.6.7

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

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 location is passed via context even if shouldComponentUpdate is implemented : We use a subscribtion system to make sure all Route are updated when the location changes.
  • The path matching logic is not include : instead of manipulating paths as string like in react-router, react-router-magic expect 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 what react-router does, you can use path-pattern.

Prerequisites

You need NodeJS and NPM or Yarn.

Installing

npm install react-router-magic --save

or

yarn add react-router-magic

TODO

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

0.6.7

4 years ago

0.6.6

7 years ago

0.6.5

7 years ago

0.6.4

7 years ago

0.6.3

7 years ago

0.6.2

7 years ago

0.6.1

7 years ago

0.6.0

7 years ago

0.5.0

7 years ago

0.4.1

7 years ago

0.3.4

7 years ago

0.3.3

7 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.4

7 years ago