1.0.3 • Published 6 months ago
rna-react-event-manager v1.0.3
rna-react-event-manager
A simple event manager for React/Next.js that provides a lightweight event bus along with custom hooks to dispatch and listen to events. This package is ideal for decoupled communication between React components.
Features
- Lightweight Event Bus: Quickly register, unregister, and emit events.
- Custom React Hooks:
useEventDispatch
: Dispatch events with parameters.useEventListener
: Listen to events and execute callbacks.
- Decoupled Communication: Easily send data between components without prop drilling.
Installation
Install the package via npm or yarn:
npm install rna-react-event-manager