JSFiddle - React, Tailwind, and code Playground
HTML
<form onsubmit="func();return false;">
<label>Test: <input type="checkbox"></label>
</form>
JavaScript
function func() {
alert($('input').prop('checked'));
}
$('label').on('click', function() {
$('form').submit();
})