JSFiddle - React, Tailwind, and code Playground
HTML
<input id="rb1" type="radio" name="rb" checked="true">
<input id="rb2" type="radio" name="rb">
JavaScript
$("input[name=rb]").change(function () {
if ($('#rb2').is(":checked")) {
alert('checked');
} else {
alert('unchecked');
}
});