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.

7 lines (6 loc) 193 B
type Listener<T> = (data: T) => void; export declare function useEventEmitter<T = void>(): { emit: (data: T) => void; subscribe: (listener: Listener<T>) => () => boolean; }; export {};