JSFiddle - React, Tailwind, and code Playground

HTML

<input type="checkbox">

<input type="checkbox"> 
<input type="checkbox">
<input type="checkbox">
<input type="checkbox">

JavaScript

$('input:checkbox').click(function(){
    var $inputs = $('input:checkbox')
        if($(this).is(':checked')){
           $inputs.not(this).prop('disabled',true); // <-- disable all but checked one
        }else{
           $inputs.prop('disabled',false); // <--
        }
    })