showing results for - "window scrollto 280 0 29 not working"
Nayla
09 Jun 2020
1const scrollToTop = () => {
2  document.getElementById("scroller").scroll(0,0)
3}
4
5<button onClick={scrollToTop}>Scroll to Top</button>