JSFiddle - React, Tailwind, and code Playground

HTML

<input type="checkbox" id="CBOX1" name="CBOX1" onclick="onCBOX(this);" disabled/>

JavaScript

function onCBOX(elem){
    alert("checked");
    elem.checked=true;
    }