JSFiddle - React, Tailwind, and code Playground

HTML

<div>
    <input type="checkbox" id="t" />
</div>
<label for="t">Click</label>

CSS

div { width: 0px; height: 0px; }

JavaScript

setInterval(function () {
   console.log($('#t')[0].checked); 
}, 3000);