Socket
Socket
Sign inDemoInstall

react-router-magic

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-router-magic

Like react-router but with magic inside


Version published
Weekly downloads
6
increased by50%
Maintainers
1
Weekly downloads
 
Created
Source

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 pattern which is just a class that must implement two methods (match & compile). This mmean 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

Keywords

FAQs

Package last updated on 02 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc