Whn going through the docs for react router, I came across a utility component that helps track page changes (for what ever purpose needed). This is the component: