1 how to refresh a single component in react without page refresh code example
Example 1: make page refresh on top in react js
onUpdate={window.scrollTo(0, 0)}
componentDidMount() {
window.scrollTo(0, 0)
}
Example 2: how to refresh the page using react
window.location.reload(false);