JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" value="CLICK TO HIDE CONTENT">
<div id="content">
and the content will go away.
</div>

CSS

input:focus + div#content {
  display: none;
}