0.1.13 • Published 5 years ago
@emarketeross/simple-react-intersection-observer v0.1.13
simple-react-intersection-observer
A simple wrapper component around react-intersection-observer that will not lazy load if its being called from the server side or if the browser does not support IntersectionObserver.
Installation
Install using Yarn:
yarn add @emarketeross/simple-react-intersection-observer
or NPM:
npm i @emarketeross/simple-react-intersection-observer --save
Example Code
import ObserverWrapper from '@emarketeross/simple-react-intersection-observer'
<ObserverWrapper>
<div>
This will only appear when viewed in the browser.
</div>
</ObserverWrapper>