After navigating from one page of my single page application (SPA), the scroll position was not the page top, as expected. The simple working solution i found, is this:
useEffect(() => { window.scrollTo(0, 0); }, []);
The useEffect hook will be needed to imported at the file top like this:
import React, { useEffect } from 'react';