how to use intersection observer in react code example Example: react-intersection-observer yarn add react-intersection-observer