usepagevisible
v1.0.2
Published
get page visibility for react apps rendering server side, like next app
Downloads
21
Maintainers
Readme
pageVisibility
page visibility hook for server side rendering react component
import like below
import {usePageVisibility} from '../utils/isVisible';
use guide
const {isVisible} = usePageVisibility();
useEffect(()=> { // your code here console.log({isVisible})
} , [isVisible])