JSFiddle - React, Tailwind, and code Playground
HTML
<input type="checkbox" id="chk"> Click on this
JavaScript
$(function() {
$("#chk").change(fucntion() {
alert("changed");
});
$("#chk").click(fucntion() {
alert("clicked");
});
});