JSFiddle - React, Tailwind, and code Playground

HTML

<p>Click Here: <input type="checkbox" name="brochures" id="brochures </input></p>
<div id"tourselection">
<p><input type="checkbox" name="backpack" />
<label for="backpack">Backpack</lable>
</p>

JavaScript

function preparePage() {
    document.getElementById("brochures").onclick = function() {
        if      (document.getElementById("brochures").checked) {
        document.getElementById("tourSelection").style.display = "block";
    } else {
        document.getElementById("tourSelection").style.display = "none";
    }
};
document.getElementById("tourSelection").style.display = "none";
}
window.onload = function() {
    preparePage();
};