when page sence the scroll its move to the next anchor react js code example Example: how to make page scroll to the top jsx componentDidMount() { window.scrollTo(0, 0) }