--- title: ScrollRestoration --- # ScrollRestoration [MODES: framework, data] ## Summary [Reference Documentation ↗](https://api.reactrouter.com/v7/functions/react_router.ScrollRestoration.html) Emulates the browser's scroll restoration on location changes. Apps should only render one of these, right before the [`Scripts`](../components/Scripts) component. ```tsx import { ScrollRestoration } from "react-router"; export default function Root() { return (