make page refresh on top in react js
snippet in javascript

make page refresh on top in react js

user7718

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

componentDidMount() {
  window.scrollTo(0, 0)
}