Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

CharlesStover/with-router

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!