JSFiddle - React, Tailwind, and code Playground

by sc0rp10

HTML

<label>
    <input id="foo" type="checkbox" />
    <span>label</span>
</label>

JavaScript

$("#foo").bind("change", function(){
    alert("foo");
})