Skip to content

Commit 784542e

Browse files
authored
fix: update dependencies and migrate from react-router-dom to react-router (#13)
Co-authored-by: Cursor Agent <[email protected]> BREAKING CHANGE: requires React Router v7
1 parent be09ace commit 784542e

File tree

4 files changed

+279
-197
lines changed

4 files changed

+279
-197
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,12 @@ page.
8282
You can also specify horizontal scroll for elements like carousels:
8383

8484
```tsx
85-
<ElementScrollRestoration elementQuery="#christmas-gifts" direction="horizontal" />
85+
<ElementScrollRestoration
86+
elementQuery="#christmas-gifts"
87+
direction="horizontal"
88+
/>
8689
```
90+
8791
## Tips:
8892

8993
1. This requires an inline script, so you'll need to pass a `nonce` if you're

0 commit comments

Comments
 (0)