SyntaxFix
Write A Post
Hire A Developer
Questions
In a component below <Router>
<Router>
Just add a React Hook (in case you are not using a React class)
React.useEffect(() => { window.scrollTo(0, 0); }, [props.location]);