JSFiddle - React, Tailwind, and code Playground
by rwaldron
HTML
<script src="https://gist.github.com/raw/961057/9cef2ace0461acbf0235f3f5f563fffdae268489/jquery.pubsub.js"></script>
JavaScript
// comment this out, still works exactly the same.
$.trigger = $.event.trigger;
$.bind( "nulldata", null, function( event, data ) {
console.log("nulldata", event, data);
});
$.trigger("nulldata", {foo:"bar"});