JSFiddle - React, Tailwind, and code Playground

HTML

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

JavaScript

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