Skip to content

Commit 80d24fd

Browse files
committed
feat: remove ReactDom findDomNode
1 parent 42dd61e commit 80d24fd

File tree

4 files changed

+21138
-6
lines changed

4 files changed

+21138
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ https://virtual-list-react-component.vercel.app/
2424
```bash
2525
npm install
2626
npm start
27-
open http://localhost:9001/
27+
open http://localhost:8000/
2828
```
2929

3030
## Feature

examples/basic.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ const Demo = () => {
202202
<button
203203
type="button"
204204
onClick={() => {
205-
listRef.current.scrollTo({
205+
listRef.current?.scrollTo({
206206
index: 50,
207207
align: 'top',
208208
});

0 commit comments

Comments
 (0)