If you are using redux or mobx as your state management library in your application, you may have come across issues with components that should be location-aware thatbut are not re-rendered after triggering an URL update
npm i -S react-router-dom
If you are using redux or mobx as your state management library in your application, you may have come across issues with components location-aware that are not re-rendered after triggering an URL update
npm i react-router-dom
If you are using redux or mobx as your state management library in your application, you may have come across issues with components that should be location-aware but are not re-rendered after triggering an URL update
"shape().isRequired" will return undefined. The isRequired is not needed for shape()
Updating library API, the original answer was based on the alpha.4 version and with the official release, the data contract changed a bit. Incorporating Redirect as another option to achieve the goal; deleted 31 characters in body
Removed reference to alpha versions, now v4 is the latest stable. Provide workaround for common issue when using React Router with libraries like Redux and Mobx