JSFiddle - React, Tailwind, and code Playground
HTML
<div id="mensagem">
<p>(...)</p>
<button class="fechar">Fechar e nĂŁo mostrar novamente</button>
</div>
JavaScript
$(".fechar").click(function(){
$("#mensagem").hide();
});
<div id="mensagem">
<p>(...)</p>
<button class="fechar">Fechar e nĂŁo mostrar novamente</button>
</div>
$(".fechar").click(function(){
$("#mensagem").hide();
});