JSFiddle - React, Tailwind, and code Playground

by wesbos

JavaScript

(window) ->
    
    # pubsub
    App.publish = (topic,args) ->
        App.subscriptions[topic] and $.each(App.subscriptions[topic], ->
            this.apply(App, args or [])