JSFiddle - React, Tailwind, and code Playground

by epidemian

HTML

<input type="button" class="btn-1" value="Button 1" />
<input type="button" class="btn-2" value="Button 2" />
<input type="button" class="btn-3" value="Button 3" />

CoffeeScript

for n in [1, 2, 3]
  $(".btn-#{n}").click -> alert "you clicked #{n}"