JSFiddle - React, Tailwind, and code Playground

HTML

<input id="rb1" type="radio" name="rb" checked="true">
<input id="rb2" type="radio" name="rb">

JavaScript

$("#rb2").change(function () {
            if ($(this).is(":checked")) {
                 alert('checked');
            }
            else {
                alert('unchecked');
            }
        });