JSFiddle - React, Tailwind, and code Playground

HTML

<button type="button" id="test">Click Me!</button>

<script>
document.getElementById("test").disabled = true;
</script>