JSFiddle - React, Tailwind, and code Playground

HTML

<p>Show textboxes<input type="radio" name="radio1" value="Show" onClick="getResults()">Do nothing<input type="radio" name="radio1" value="Nothing"></p>
Wonderful textboxes:
<div class="text"><p>Textbox #1 <input type="text" name="text1" id="text1" maxlength="30"></p></div>
<div class="text"><p>Textbox #2 <input type="text" name="text2" id="text2" maxlength="30"></p></div>

JavaScript

$(document).ready(function() {
    $(".text").hide()
        function getResults() {
            $(".text").show()
        };
});