Scroll-To-Top with React This has a reusable component, copy the ScrollToTop folder into your project and import it into your App.js file and boom everything works. No need to install any dependency.. You can just twerk the styling to fit your taste. Enjoy...