JavaScript Fanboi
Published in

JavaScript Fanboi

DOM Components

Make Professional Components with Pub/Sub and Custom Events

How to use broadcasters and listeners for dependency-free code

Pub/sub event bus
Pub/sub event bus

Publish/subscribe is a classic software design pattern that allows pieces of an application to be decoupled. It uses messages instead of functions, closures, or callbacks. It promotes an architectural style…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Joe Honton

Joe Honton

1.6K Followers

Using distraction-free tools for better reading, writing and publishing, and loving it!