feat: add ScrollRestoration

proto-module-actu-react
Jalil Arfaoui 2023-02-24 00:36:41 +01:00
parent fcf2977eb9
commit 7679672432
1 changed files with 2 additions and 0 deletions

View File

@ -1,8 +1,10 @@
import React from "react"; import React from "react";
import { Outlet } from "react-router"; import { Outlet } from "react-router";
import { ScrollRestoration } from "react-router-dom";
export const Layout = () => ( export const Layout = () => (
<div> <div>
<ScrollRestoration />
<Outlet /> <Outlet />
</div> </div>
); );