Monitor if a component is inside the viewport, using IntersectionObserver API
github.com/thebuilder/react-intersection-observer
thebuilder/react-intersection-observer