react-scroll-to-top-route
A ReactJS route component that scrolls users back to the top of the page when navigating around with the react router.
Example
; // Example usageconst Routes = <Switch> <ScrollToTopRoute path="/example-but-with-scrolling" render= <p>Normal route with scrolling to top when navigating</p> /> <Route path="/example" render= <p>Normal route</p> /></Switch>;