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 9.3.4 to 9.3.5

8

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

@@ -11,4 +11,8 @@ "source": "./src/index.tsx",

"exports": {
"./test-utils": "./test-utils.js",
"./test-utils": {
"types": "./test-utils.d.ts",
"default": "./test-utils.js"
},
".": {
"types": "./index.d.ts",
"require": "./react-intersection-observer.js",

@@ -15,0 +19,0 @@ "default": "./react-intersection-observer.modern.mjs"

@@ -170,3 +170,3 @@ # react-intersection-observer

| **as** | `string` | `'div'` | Render the wrapping element as this element. Defaults to `div`. |
| **children** | `({ref, inView, entry}) => ReactNode` or `ReactNode` | `undefined` | Children expects a function that receives an object containing the `inView` boolean and a `ref` that should be assigned to the element root. Alternatively pass a plain child, to have the `<InView />` deal with the wrapping element. You will also get the `IntersectionObserverEntry` as `entry, giving you more details. |
| **children** | `({ref, inView, entry}) => ReactNode` or `ReactNode` | `undefined` | Children expects a function that receives an object containing the `inView` boolean and a `ref` that should be assigned to the element root. Alternatively pass a plain child, to have the `<InView />` deal with the wrapping element. You will also get the `IntersectionObserverEntry` as `entry`, giving you more details. |

@@ -173,0 +173,0 @@ ### Intersection Observer v2 🧪

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