React custom hook that uses the Intersection observer API.
npm install react-observer-componentReact custom hook that uses the Intersection observer API.
#### Getting started
``shell`
npm install react-observer-component
#### Usage
`jsx
import React from 'react';
import useObserver from 'react-observer-component';
const MyComponent = () => {
const [isInView, ref] = useObserver();
return (
Only shows when is in viewport!
}#### Browser support
##### Author: Mikel Parra