@ridi/react-router-restore-scroll
Advanced tools
Comparing version
{ | ||
"name": "@ridi/react-router-restore-scroll", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Scroll position restoration for React Router", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -68,3 +68,3 @@ # Restore Scroll | ||
... | ||
"@ridireact-router-restore-scroll": "^0.0.3", | ||
"@ridi/react-router-restore-scroll": "^0.0.3", | ||
... | ||
@@ -94,3 +94,3 @@ ``` | ||
useRouterRestoreScroll | ||
} from 'react-router-restore-scroll' | ||
} from '@ridi/react-router-restore-scroll' | ||
@@ -126,3 +126,3 @@ // first enhance a history | ||
```js | ||
import { RestoreScroll } from 'react-router-restore-scroll' | ||
import { RestoreScroll } from '@ridi/react-router-restore-scroll' | ||
@@ -148,3 +148,3 @@ // then in a component's render method, wrap your scrollable element | ||
import createBrowserHistory from 'history/lib/createBrowserHistory' | ||
import useHistoryRestoreScroll from 'react-router-restore-scroll/lib/useHistoryRestoreScroll' | ||
import useHistoryRestoreScroll from '@ridi/react-router-restore-scroll/lib/useHistoryRestoreScroll' | ||
@@ -151,0 +151,0 @@ const history = useHistoryRestoreScroll(createBrowserHistory)() |
19442
0.1%