Get information about intersection of given element with its scroll container
use-intersection gets information about the intersection of a given element with its scroll container or body element with Intersection Observer API:
IntersectionObserver's options as its only optional argument:
ref function that should be passed to the observed element, and the latest entry, as returned by
See Intersection Observer API documentation to learn everything about options.
On the first render (as well as during SSR), or when no element is being observed, the entry is