JSFiddle - React, Tailwind, and code Playground

HTML

<input type="radio" name='abc' class="rad" />
<input type="radio" name='abc' class="rad" />
<input type="radio" name='abc' class="rad" />

JavaScript

$('.rad').mousedown(function () {
    $(this).data('checked', $(this).prop('checked'));
}).click(function () {
    var checked = $(this).data('checked');
    $(this).prop('checked', !checked);
});