react-intersection-visible-hook
react-intersection-visible-hook copied to clipboard
React Hook to track the visibility of a functional component
Results
2
react-intersection-visible-hook issues
Sort by
recently updated
recently updated
newest added
Have you been able to come up with suitable unit tests for this? I am finding it challenging to test this using JEST and enzyme in react and could use...
```ts import { useRef, useState, useEffect, RefObject } from 'react' import 'intersection-observer' type UseVisibilityType = ( node: RefObject, options?: IntersectionObserverInit | undefined ) => IntersectionObserverEntry | object const useVisibility: UseVisibilityType...