JSFiddle - React, Tailwind, and code Playground

HTML

<input type="checkbox" /><button />

JavaScript

jQuery.propHooks.checked = {
    set: function (el, value) {
        el.checked = value;
        $(el).trigger('change');
    }
};

$(':checkbox').bind('change', function (){
    alert('called'); 
});

$('button').bind('click', function () {
    $(':checkbox').prop('checked', function (i, curr) {
        return !curr;
    }); 
});