How to listen to route changes in react router v4? : <p>I have a couple of buttons that acts as routes. Everytime the route is changed, I want to make sure the button that is active changes.</p>

<p>Is there a way to listen to route changes in react router v4?</p>
