with-router

1.0.1 • Public • Published

withRouter Tweet

A pub-sub alternative HOC to react-router's withRouter HOC. It functions exactly the same way, except the wrapped component will re-render when the route changes. This is beneficial if your view changes depending on the current path.

version minified size minzipped size downloads build

Install

  • npm install with-router --save or
  • yarn add with-router

Use

Use it the same way you would use react-router's built-in withRouter HOC!

Dependencies (0)

    Dev Dependencies (10)

    Package Sidebar

    Install

    npm i with-router

    Weekly Downloads

    31

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    6.7 kB

    Total Files

    4

    Last publish

    Collaborators

    • charlesstover