UNPKG
@vergiss/chooks
Version:
latest (0.5.0)
0.5.0
0.4.0
0.3.0
0.2.0
0.1.1
0.1.0
React hooks library
github.com/divasatanica/chooks
divasatanica/chooks
@vergiss/chooks
/
lib
/
hooks
/
useInView
/
index.d.ts
5 lines
(4 loc)
•
179 B
TypeScript
View Raw
1
2
3
4
5
import
{
MutableRefObject
}
from
'react'
;
import
'intersection-observer'
;
declare
function
useInView
(
target
:
MutableRefObject
<
HTMLElement
|
null
>
):
boolean
;
export
{ useInView };