JSFiddle - React, Tailwind, and code Playground

by xawixawxaw

HTML

<input type="checkbox" id="home">

JavaScript

$("#home").click(function() {
    if($(this).is(":checked")) 
    {
        alert('home is checked');
    }
});