JSFiddle - React, Tailwind, and code Playground

HTML

<input id="check"  type="checkbox"/>

JavaScript

document.getElementById("check").disabled= true;