JSFiddle - React, Tailwind, and code Playground

HTML

<input type="checkbox" class="mes_sel">

JavaScript

$(function(){
    $(".mes_sel").on("change", function(){
        if($(this).is(':checked')){
            alert("Checked");
        } else {
            alert("Not Checked");
        }
    });
});