JSFiddle - React, Tailwind, and code Playground
HTML
<button id="toggler">click me</button><br>
<input type="radio" name="speeds" value="fast" checked>fast<br>
<input type="radio" name="speeds" value="slow">slow<br>
JavaScript
$('#toggler').click(function() {
$('input[type="radio"]').last().prop('checked', 'checked');
});