Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-intersection-observer

Package Overview
Dependencies
Maintainers
1
Versions
160
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-intersection-observer - npm Package Compare versions

Comparing version 0.1.2 to 0.2.0

LICENSE

2

package.json
{
"name": "react-intersection-observer",
"version": "0.1.2",
"version": "0.2.0",
"description": "Monitor if a component is inside the viewport, using IntersectionObserver API",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

# react-intersection-observer
[![Dependency Status](https://david-dm.org/thebuilder/react-intersection-observer.svg)](https://david-dm.org/thebuilder/react-intersection-observer)
[![npm version](https://badge.fury.io/js/react-intersection-observer.svg)](https://www.npmjs.com/package/react-intersection-observer)

@@ -15,3 +16,3 @@ React component that allows triggers a function when the component enters or leaves the viewport.

## Demo
https://thebuilder.github.io/react-intersection-observer/
See https://thebuilder.github.io/react-intersection-observer/ for a demo.

@@ -22,3 +23,3 @@ ## Installation

```sh
yarn add react-view-pager
yarn add react-intersection-observer
```

@@ -28,3 +29,3 @@

```sh
npm install react-view-pager --save
npm install react-intersection-observer --save
```

@@ -96,3 +97,3 @@

### Universal rendering
## Universal rendering
The IntersectionObserver polyfill requires `window` and `document`, and will crash if you try to import it outside the browser.

@@ -103,2 +104,2 @@ To allow the Observer to be rendered universally, it sets `global.window` and `global.document` to empty objects if they are not defined.

It could potentially conflict with other modules that checks for the existence of `window` and `document`. You can always require `lib/Observer.js` directly, to skip the window check. `lib/Observer.js` is also set as the `"browser"` field.
It could potentially conflict with other modules that checks for the existence of `window` and `document`. You can always require `lib/Observer.js` directly, to skip the window check. `lib/Observer.js` is also set as the `"browser"` field.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc