UNPKG

@supunlakmal/hooks

Version:

A collection of reusable React hooks

8 lines (7 loc) 247 B
/** * Custom hook to track the visibility state of the browser page/tab * using the Page Visibility API. * * @returns {boolean} True if the page is currently visible, false otherwise. */ export declare const usePageVisibility: () => boolean;