UNPKG

@mirawision/reactive-hooks

Version:

A comprehensive collection of 50+ React hooks for state management, UI interactions, device APIs, async operations, drag & drop, audio/speech, and more. Full TypeScript support with SSR safety.

8 lines (7 loc) 281 B
/** * A hook that tracks the browser's online/offline status. * Returns true when online, false when offline. * Defaults to true during SSR for optimistic rendering. * @returns boolean indicating if the browser is online */ export declare function useOnlineStatus(): boolean;