JSFiddle - React, Tailwind, and code Playground

HTML

<div id="boto"></div>
<div id="boto2"></div>

CSS

#boto {
    position: absolute;
    top:100px;
    left:100px;
    width: 50px;
    height: 30px;
    background-color:#3C0
    
}

#boto2 {
    position: absolute;
    top:100px;
    left:200px;
    width: 50px;
    height: 30px;
    background-color:#C00
    
}

JavaScript

$(function(){
    
    $("#boto").click(function() {
        $("#boto2").fadeOut("slow");
    });
})