JSFiddle - React, Tailwind, and code Playground
HTML
<input type="checkbox" id="something" />
JavaScript
/*$("#something").change( function(){
if( $(this).is(':checked') ) alert("checked");
else alert("unchecked");
});*/
$('#checkbox').attr('checked', true);