JSFiddle - React, Tailwind, and code Playground

HTML

Oculte el DIV:
<hr>
<div id="boton" onclick="ocultar(this.id)">OCULTAR</div>

CSS

#boton{
	padding:15px;
	width:100%;
	background-color:#D80003;
	color:#fff;
}

JavaScript

function ocultar(X){

$("#"+X).hide(500);

}