Role até o topo no React
componentDidMount() {
window.scrollTo(0, 0)
}
John wick
componentDidMount() {
window.scrollTo(0, 0)
}
useEffect(() => {
window.scrollTo(0, 0)
}, [])
componentDidMount() {
window.scrollTo(0, 0)
}