JSFiddle - React, Tailwind, and code Playground

by TrueBlueAussie

HTML

<input type="checkbox" id="one" />
    <input type="checkbox" id="two" />
    <input type="checkbox" id="three" />
    <input type="checkbox" id="four" />

JavaScript

$('input[type="checkbox"]').click(function() {
   $('input[type="checkbox"]').not(this).prop("checked", false);
});