JSFiddle - React, Tailwind, and code Playground
HTML
<input type="checkbox" /><input type="checkbox" /><input type="checkbox" /><input type="checkbox" />
JavaScript
$(':checkbox').click(function(){
var status = this.checked;
$(':checkbox').attr('checked', this.checked);
this.checked != status;
});