Skip to content

Commit

Permalink
Correct hook name introduction.md (#560)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamward459 committed Aug 29, 2023
1 parent c7a20bf commit 882aed1
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
Expand Up @@ -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 { useVirtualizer } from '@tanstack/react-virtual';
import { useVirtual } from '@tanstack/react-virtual';

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

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

0 comments on commit 882aed1

Please sign in to comment.