JSFiddle - React, Tailwind, and code Playground
HTML
<input type="radio" id="r1" name="rs" value="foo" /><label for="r1">un</label><br/>
<input type="radio" id="r2" name="rs" value="foo" /><label for="r2">deux</label><br/>
JavaScript
$("[name='rs']").on('click', function(){
$("[for='"+$(this).attr('id')+"']").css('color','red')
})