React component using the Intersection Observer API for watching when an element is visible in the viewport.