JSFiddle - React, Tailwind, and code Playground

by Eric Howe

HTML

<button id='test'>Click me</button>

CoffeeScript

App =
  init: ->
    this.foo = 'bar'
    this.bindEvent()
  bindEvent: ->  
    $('#test').click(this.show)
  show: ->
    alert App.foo
  
App.init()