Skip to content

Commit

Permalink
docs: Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed May 22, 2024
1 parent 20160fa commit f0d2266
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@ page you choose. It does this by storing the scroll position of the element in
session storage and then restoring it when the user navigates back to the page
(very similar to how Remix handles scroll restoration for the `<body>`).

This depends on React Router's `useBeforeUnload`, `useNavigation`, and
`useLocation` hooks. It could probably be generalized to work with other
routers. PRs welcome.
This depends on React Router's `useNavigation` and `useLocation` hooks. It could
probably be generalized to work with other routers. PRs welcome.

## Usage

Expand Down

0 comments on commit f0d2266

Please sign in to comment.