React sensor hook that tracks the changes in the intersection of a target element with an ancestor element or with a top-level document's viewport.
The useIntersection
hook uses the Intersection Observer API and the IntersectionObserverEntry.
Run the following command: