feat: add ScrollRestoration
parent
fcf2977eb9
commit
7679672432
|
@ -1,8 +1,10 @@
|
|||
import React from "react";
|
||||
import { Outlet } from "react-router";
|
||||
import { ScrollRestoration } from "react-router-dom";
|
||||
|
||||
export const Layout = () => (
|
||||
<div>
|
||||
<ScrollRestoration />
|
||||
<Outlet />
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue