Skip to content

Commit

Permalink
Use correct hook name on Introduction page (#625)
Browse files Browse the repository at this point in the history
undeletable authored Nov 17, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent bcadf0d commit a1c66ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/guide/introduction.md
Original file line number Diff line number Diff line change
@@ -11,14 +11,14 @@ At the heart of TanStack Virtual is the `Virtualizer`. Virtualizers can be orien
Here is just a quick example of what it looks like to virtualize a long list within a div using TanStack Virtual in React:

```tsx
import { useVirtual } from '@tanstack/react-virtual';
import { useVirtualizer } from '@tanstack/react-virtual';

function App() {
// The scrollable element for your list
const parentRef = React.useRef()

// The virtualizer
const rowVirtualizer = useVirtual({
const rowVirtualizer = useVirtualizer({
count: 10000,
getScrollElement: () => parentRef.current,
estimateSize: () => 35,

0 comments on commit a1c66ca

Please sign in to comment.