Skip to content

Latest commit

 

History

History
17 lines (17 loc) · 389 Bytes

File metadata and controls

17 lines (17 loc) · 389 Bytes

Scroll On Navigation

Place this component within the Router on App.js to automatically send the user to the top of the page when they navigate from one page to the next.

function App() {
  return (
    <div>
      <Router>
        <Header />
        <ScrollToTop />
        <PageView />
        <Footer />
      </Router>
    </div>
  );
}

BACK