JSFiddle - React, Tailwind, and code Playground

HTML

<h1>Quiz</h1>
<h2>Question</h2>

<p id="question"></p>
<form name="choices">
    <fieldset>
        <!-- insert questions here dynamically via javascript! -->
        <label>
            <input type="radio" name="choice" value="1st">First-class</label>
        <label>
            <input type="radio" name="choice" value="2day">2-day Air</label>
        <label>
            <input type="radio" name="choice" value="overnite">Overnight</label>
    </fieldset>
</form>

JavaScript

window.onload = removeQuestions();

function removeQuestions() {
    var choices = document.forms.choices.elements[0].children;
    while (choices.length > 0) {
        var choice = choices[0];
        choice.parentNode.removeChild(choice);
    }
}