JSFiddle - React, Tailwind, and code Playground
HTML
<input id="test" type="checkbox" />
<div id="res"></div>
JavaScript
function printL(str) {
$('#res').append('<div>' + str + '</div>');
}
printL($("#test").is(':checked'));
$("#test").prop("checked", 'checked');
printL($("#test").is(':checked'));
$("#test").removeProp("checked");
printL($("#test").is(':checked'));
$("#test").prop("checked", 'checked');
printL($("#test").is(':checked'));