React component that triggers a function when the component enters or leaves the viewport. No complex configuration needed, just wrap your views and it handles the events.
yarn add react-intersection-observer
$ npm install react-intersection-observer
Live Demo: View The Demo
Download Link: Download The Source Code
Official Website: https://github.com/thebuilder/react-intersection-observer