``` npm i @ash/use-intersection-observer ```
npm install @ash/use-intersection-observer```
npm i @ash/use-intersection-observer
Most Intersection Observer helpers are geared towards tracking a single element.
This hook is designed for observing multiple elements.
The useIntersectionObserver hook returns an object with the following entries:
Call addRef from a component ref to begin tracking the underlying HTML element.
EntryId is a string or number used to uniquely identify the HTML element.
A Set containing all of the EntryIds that are currently intersecting.
`js
import useIntersectionObserver from 'use-intersection-observer'
const App = () => {
const { addRef, intersecting } = useIntersectionObserver()
const users = ['Louise', 'Bob', 'Linda']
return (