JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<input type="radio" class="my-radio">
JavaScript
var radioState;
$('.my-radio').on('click', function(e) {
if (radioState === this) {
this.checked = false;
radioState = null;
} else {
radioState = this;
}
});