react-in-viewport
Advanced tools
Comparing version 1.0.0-alpha.27 to 1.0.0-alpha.28
import React from 'react'; | ||
import type { Config, Props, Options } from './types'; | ||
declare const useInViewport: (target: React.MutableRefObject<HTMLElement>, options?: Options, config?: Config, props?: Props) => { | ||
declare const useInViewport: (target: React.RefObject<HTMLElement>, options?: Options, config?: Config, props?: Props) => { | ||
inViewport: boolean; | ||
@@ -5,0 +5,0 @@ enterCount: number; |
{ | ||
"name": "react-in-viewport", | ||
"version": "1.0.0-alpha.27", | ||
"version": "1.0.0-alpha.28", | ||
"description": "Track React component in viewport using Intersection Observer API", | ||
@@ -5,0 +5,0 @@ "author": "Roderick Hsiao <roderickhsiao@gmail.com>", |
93725