@emarketeross/simple-react-intersection-observer

0.1.13 • Public • Published

simple-react-intersection-observer

GitHub license npm version CircleCI Status

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>

License: Apache2

Package Sidebar

Install

npm i @emarketeross/simple-react-intersection-observer

Weekly Downloads

2

Version

0.1.13

License

Apache-2.0

Unpacked Size

18.9 kB

Total Files

5

Last publish

Collaborators

  • jsoncona
  • bernardwolff
  • emsupport
  • raymondchan
  • biddlem
  • semsogutlu