JSFiddle - React, Tailwind, and code Playground
HTML
<form>
<input class="class1" type="radio" name="l1" value="0" checked="checked" /> c1
<input class="class2" type="radio" name="l1" value="1" /> c2<br />
<input class="class1" type="radio" name="l2" value="0" checked="checked" /> c3
<input class="class2" type="radio" name="l2" value="1" /> c4<br />
<input type="button" onclick="$('.class1').attr('checked','checked');" value="c1 et c2" /><br />
<input type="button" onclick="$('.class2').attr('checked','checked');" value="c3 et c4" />
</form>