publisher-subscriber-react-hoc (npm): React Higher-Order Component, which provides 'subscribe', 'unsubscribeAll', 'eventSubscribersCount', 'subscribersCount' methods. Can be used with various eventEmitters, including browser's 'window' object.
Keywords: react|HOC|higher order component|provider|consumer|publisher|subscriber|publisher-subscriber|pub-sub|browser|window|addEventListener|removeEventListener|eventEmitter|addListener|removeListener|publish|subscribe|unsubscribe|events|callbacks|javascript|typescript|unit tests|event-emitter|higher-order-component|javascript-library|unit-testing