JSFiddle - React, Tailwind, and code Playground
HTML
<label class="toggle-label" for="Clicker">Click it</label>
<input id="Clicker" class="click-detect" type="checkbox" />
<p class="toggle">
This paragraph shows because the link hasn't been clicked. It will hide when you click the "Click It" text. Honest!
</p>
CSS
.toggle {display: block;}
.toggle-label { color: blue; text-decoration: underline; }
.toggle-label:hover {text-decoration: none; cursor: pointer; }
#Clicker {display: none;}
#Clicker:checked + .toggle {display: none;}