JSFiddle - React, Tailwind, and code Playground
HTML
<input type="checkbox" id="check1" class="myClass" >Box 1
<input type="checkbox" id="check2" class="myClass">Box 2
JavaScript
var $checkboxes = $('.myClass');
$checkboxes.click(function() {
$checkboxes.not(this).prop('checked', false);
});