UNPKG

@barguide/react-hooks

Version:
11 lines (9 loc) 389 B
import { EventEmitter } from 'events'; /** * @external https://nodejs.org/api/events.html * @description Much of the Node.js core API is built around an idiomatic * asynchronous event-driven architecture in which certain kinds of objects * (called "emitters") emit named events that cause Function objects * ("listeners") to be called. */ export const emitter = new EventEmitter();