Skip to content

useDocumentVisibility ​

Category
Browser

Hook that provides the current visibility state of the document

typescript
import { useDocumentVisibility } from '@siberiacancode/reactuse';

Usage ​

typescript
const visibilityState = useDocumentVisibility();

Demo ​

Api ​

Contributors ​

Source • Demo