useEffect(() => { window.scrollTo(0, 0) }, [])
I do scroll to the top by this snippet of code, also I\'ve tried to make it ref like this: