JSFiddle - React, Tailwind, and code Playground
HTML
<button id="button_1">Show/hide</button>
<div id="bubble1">This block shows and hides</div>
<button id="button_2">Show/hide with fading</button>
<div id="bubble2">This block shows and hides with fading</div>
JavaScript
$("#button_1").click(function() {
$("#bubble1").toggle();
});
$("#button_2").click(function() {
$("#bubble2").fadeToggle();
});