onscroll event in react js with smooth scrollbar code example Example: smooth scroll react $ npm install react-scroll