JSFiddle - React, Tailwind, and code Playground

by edelman

HTML

<input type=checkbox id=test>
  <div id="result"></div>

JavaScript

$('#test').on('click', function() { 
  $('#result').text($(this).is(':checked'));
});