nebenan-react-router-utils

1.0.0-beta.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i nebenan-react-router-utils

Homepage

nebenan.de

Weekly Downloads

0

Version

1.0.0-beta.0

License

MIT

Unpacked Size

7.53 kB

Total Files

7

Last publish

Collaborators

  • suprmax