JSFiddle - React, Tailwind, and code Playground
HTML
<input type="checkbox"/>
<input type="checkbox"/>
<input type="checkbox"/>
<div id="result">1</div>
JavaScript
$("input:checkbox").click(function() {
$("input:checkbox:checked[name='" + this.name + "']").not(this).removeAttr("checked");
$("#result").html($("#result").html()*1 + 1);
});