Answers for "how to get top of page on click in react"

2

scroll to top in react

useEffect(() => {
  window.scrollTo(0, 0)
}, [])
Posted by: Guest on August-28-2020
-1

how to make page scroll to the top jsx

componentDidMount() {
  window.scrollTo(0, 0)
}
Posted by: Guest on November-01-2020

Code answers related to "how to get top of page on click in react"

Code answers related to "Javascript"

Browse Popular Code Answers by Language