1.0.0-beta.0 • Published 5 years ago

nebenan-react-router-utils v1.0.0-beta.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

react-router-utils

A set of utility function to help working with React Router

Usage:

withHistory(Component)

Injects location, match, and history props while maintaining ability to ref the inner Component.

state

actions.setRoute(string)

reducer

Links your react router with a redux store to have latest route easily accessible without the need to wrap everything in withHistory

utils

A collection of various utils to help working with paths and history objects inside React components