JSFiddle - React, Tailwind, and code Playground
HTML
<form id="form1">
<input type="radio" name="group1" value="Milk" />Milk
<input type="radio" name="group1" value="Butter"/> Butter
</form>
<form id="form2" style="display:none;">
<input id="foo" type="text"/>
</form>
JavaScript
$('input').click(function() {
if ($('input:checked').val() == 'Milk') {
$('#form2').show();
}
});