JSFiddle - React, Tailwind, and code Playground
HTML
<span style="opacity:0;">I'm Hidden</span>
<button class="showme" type="button">Show</button>
<button class="hideme" type="button">Hide</button>
JavaScript
$('.showme').click(function(e){
$('span').fadeTo(1000,1)
});
$('.hideme').click(function(e){
$('span').fadeTo(1000,0)
});