JSFiddle - React, Tailwind, and code Playground

HTML

<label for="test-1">
    <input type="radio" name="test" id="test-1"> Test 1
</label>
<label for="test-2">
    <input type="radio" name="test" id="test-2"> Test 2
</label>

JavaScript

$('label').click(function() {
    console.log('Was here');
});