JSFiddle - React, Tailwind, and code Playground
by briguy37
HTML
<div>
Deselectable Radio: <input type="radio" id="radioinstant"/>
</div>
JavaScript
$('#radioinstant').click(function() {
var previousValue = $(this).attr('previousValue');
if(previousValue == 'true'){
$(this).attr('checked', false)
}
$(this).attr('previousValue', $(this).attr('checked'));
});