JSFiddle - React, Tailwind, and code Playground

HTML

<input type="radio" id="opt1"/> Foo
<input type="button" id="button" value="Check!"/>

JavaScript

$('#button').click(function() {
   $('#opt1').attr('checked', true);
});