main
useEventEmitter
export function useEventEmitter() { const ref = useRef(); if (!ref.current) { ref.current = { subscriptions: new Set(),