UNPKG

hoxa

Version:

A comprehensive collection of 100+ production-ready React hooks for state management, UI effects, forms, animations, and more. Carefully curated and optimized for performance and developer experience.

4 lines (3 loc) 291 B
type EventTargetElement = Window | Document | HTMLElement | null; export declare function useEventListener<K extends keyof HTMLElementEventMap>(eventType: K, handler: (event: HTMLElementEventMap[K]) => void, element?: EventTargetElement, options?: AddEventListenerOptions): void; export {};