JSFiddle - React, Tailwind, and code Playground

by Shef

HTML

<input type="checkbox">Check it

JavaScript

$('input:checkbox').change(function(){
    if($(this).is(':checked')){
        alert('Checked');
    }
});