react-intersection-observer functional component example Example: react-intersection-observer yarn add react-intersection-observer