JSFiddle - React, Tailwind, and code Playground
HTML
<input type="radio" id="One" class="deselectRadioButton" checked/>
<input type="radio" id="Two" class="deselectRadioButton" />
<input type="radio" id="Three" class="deselectRadioButton" />
JavaScript
$(".deselectRadioButton").click( function(e){
if($(this).hasClass("on"))
{
$(this).removeAttr('checked');
}
$(this).toggleClass("off");
}).find(":checked").addClass("on");