JSFiddle - React, Tailwind, and code Playground

HTML

<ul>
    <li>
        <input type="radio" name="r" value="a" id="a" checked="checked" />
        <label for="a">A</label>
    </li>
    <li>
        <input type="radio" name="r" value="b" id="b" />
        <label for="b">B</label>
    </li>
</ul>

CSS

.selected {
    background-color: #efefef;
}

JavaScript

$(':radio[name="r"]').change(function(){
    $(this).removeAttr("checked")
}).filter(':checked').change();