scrolling view with javascript code example
Example 1: make page refresh on top in react js
onUpdate={window.scrollTo(0, 0)}
componentDidMount() {
window.scrollTo(0, 0)
}
Example 2: css keep background image from scrolling
background-attachment: fixed;