0.20.1 • Published 4 years ago
@terra-dev/use-router-scroll-restoration v0.20.1
@terra-dev/use-router-scroll-restoration
Scroll restore to 0,0 when the router path is changed
import { useRouterScrollRestoration } from '@terra-dev/use-router-scroll-restoration';
function App() {
useRouterScrollRestoration();
return <YOUR_APP />;
}
Or
import { RouterScrollRestoration } from '@terra-dev/use-router-scroll-restoration';
function App() {
return (
<div>
<RouterScrollRestoration />
<YOUR_APP />
</div>
);
}
0.20.1
4 years ago
0.20.0
4 years ago
0.19.0
4 years ago
0.18.0
4 years ago
0.17.0
4 years ago
0.17.1
4 years ago
0.16.0
4 years ago
0.16.0-alpha.4
4 years ago
0.16.0-alpha.1
4 years ago
0.16.0-alpha.3
4 years ago
0.16.0-alpha.2
4 years ago
0.14.0
4 years ago
0.15.0
4 years ago
0.13.0
4 years ago
0.13.1
4 years ago
0.12.2
4 years ago
0.10.0
4 years ago
0.11.0
4 years ago
0.10.1
4 years ago
0.12.0
4 years ago
0.10.2
4 years ago
0.8.0
4 years ago
0.12.1
4 years ago
0.5.0
4 years ago
0.4.0
4 years ago
0.7.0
4 years ago
0.6.0
4 years ago
0.3.0
4 years ago
0.2.0
4 years ago
0.1.0
4 years ago