| ScrollRestoration | R Documentation |
https://api.reactrouter.com/v7/functions/react-router.ScrollRestoration.html
ScrollRestoration(...)
... |
Props to pass to element. Notable props: |
Emulates the browser's scroll restoration on location changes after loaders
have completed. Place once inside the root layout of a data router app.
Requires a data router (createBrowserRouter,
createHashRouter, etc.).
A ScrollRestoration component.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.