JSFiddle - React, Tailwind, and code Playground
HTML
<p id="pColor">Este párrafo cambiará de color según el valor del radio seleccionado.</p>
<form name="formColor">
<input type="radio" name="color" value="red" id="red" /><label for="red">Rojo</label>
<input type="radio" name="color" value="green" id="green"/><label for="green">Verde</label>
<input type="radio" name="color" value="blue" id="blue"/><label for="blue">Azul</label>
</form>
JavaScript
$("input").on('click', function(){
$("#pColor").css("color",$(this).val());
});