JSFiddle - React, Tailwind, and code Playground

HTML

<input type="checkbox" id="checkbox1" /> <br />

JavaScript

$(document).ready(function() {
    //set initial state.
    $('body').on('change', '#checkbox1', function(event) { alert(1); });
  
});ha