import * as React from "react" ; class ScrollToTopOnMount extends React . Component { public componentDidMount ( ) { window . scrollTo ( 0 , 0 ) ; } public render ( ) { return null ; } } export default ScrollToTopOnMount ;