Skip to content

Commit

Permalink
Also fix this example snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
timdorr committed Sep 15, 2022
1 parent 049d00c commit 78b4b88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/components/scroll-restoration.md
Expand Up @@ -28,7 +28,7 @@ Optional prop that defines the key React Router should use to restore scroll pos

```tsx
<ScrollRestoration
getKey={({ location, matches }) => {
getKey={(location, matches) => {
// default behavior
return location.key;
}}
Expand Down

0 comments on commit 78b4b88

Please sign in to comment.