The IntersectionObserver API allows us to track the visibility of HTML elements, but how do you use it within React?