Answers for "automatically comes to top while refrehed in react js"

2

make page refresh on top in react js

onUpdate={window.scrollTo(0, 0)}

componentDidMount() {
  window.scrollTo(0, 0)
}
Posted by: Guest on April-08-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 "automatically comes to top while refrehed in react js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language