JSFiddle - React, Tailwind, and code Playground
HTML
<div id="OuterDivOrBody">
<input type="checkbox" id="checkbox1" />
</div>
JavaScript
$('input:checkbox').on('change', function () {
if (!this.checked) {
alert("checked");
}
});