JSFiddle - React, Tailwind, and code Playground

HTML

<body>
  <div>
    <a href="#" id="home">Home</a>
    <a href="#" id="button2">button2</a>
  </div>
</body>
<div id="homecontent">
  <h1>
Hello World!
</h1>
  <p>
    The world is still beautiful
  </p>
</div>

CSS

#homecontent.hide {
  display: none !important;
  font-size: 20px;
}

JavaScript

var show = document.getElementById(home)
var homecontent = document.getElementById(homecontent)

show.onclick = function() {
  homecontent.className = "hide"
}