-
This is a simple method to scroll page to top on route changes. here we are using useEffect to run scrolling function on every path change. Include this snippet in your App.js.
This is a simple method to scroll page to top on route changes. here we are using useEffect to run scrolling function on every path change. Include this snippet in your App.js.