JSFiddle - React, Tailwind, and code Playground

HTML

<li class="test">
    <input type="radio" id="check" class="rd" name="v" value="1" />
    <label for="check">Radio 1</label>
</li>

JavaScript

$(".test").click(function (event) {
    //event.stopPropagation();
    alert(21);
});