JSFiddle - React, Tailwind, and code Playground

HTML

<label> Click me <input type="checkbox" /> </label>

JavaScript

$('label').on('click', function() {
    alert('label click');
});