JSFiddle - React, Tailwind, and code Playground
HTML
<body>
<div id="circle"></div>
</body>
CSS
#circle {
width: 100px;
height: 100px;
border-radius: 100px;
background-color: red;
}
JavaScript
document.getElementById("circle").onclick = function () {
document.getElementById("circle").style.display = "none";
};