@terra-dev/use-router-scroll-restoration
@terra-dev/use-router-scroll-restoration
npm i @terra-dev/use-router-scroll-restoration
@terra-dev/use-router-scroll-restoration

@terra-dev/use-router-scroll-restoration

A monorepo containing everything user-facing

by Anchor-Protocol

0.20.1 (see all)License:Apache-2.0TypeScript:Not Found
npm i @terra-dev/use-router-scroll-restoration
Readme

@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>
  );
}

Downloads/wk

1

GitHub Stars

99

LAST COMMIT

9mos ago

MAINTAINERS

1

CONTRIBUTORS

17

OPEN ISSUES

20

OPEN PRs

6
VersionTagPublished
0.20.1
latest
1yr ago
0.16.0-alpha.4
canary
1yr ago
No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate