Skip to content

Commit

Permalink
[docs] Fix typo (#2209)
Browse files Browse the repository at this point in the history
  • Loading branch information
nmay231 committed Aug 23, 2022
1 parent 87fccbd commit b4d1d5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/docs/hooks/use-intersection.mdx
Expand Up @@ -38,7 +38,7 @@ See [Intersection Observer API](https://developer.mozilla.org/en-US/docs/Web/API
On the first render (as well as during SSR), or when no element is being observed, the entry is `null`.

```tsx
const [ref, ioEntry] = useIntersection();
const { ref, entry } = useIntersection();

// With regular element:
<div ref={ref}>Observed</div>
Expand Down

0 comments on commit b4d1d5c

Please sign in to comment.