React implementation of the Intersection Observer API to tell you when an element enters or leaves the viewport.