JSFiddle - React, Tailwind, and code Playground
HTML
<div id="updatePlayerList">
//some content
asdasdasdasd
</div>
<button>hide</button>
JavaScript
$('button').click(function(){
$('#updatePlayerList').hide(1000);
})
<div id="updatePlayerList">
//some content
asdasdasdasd
</div>
<button>hide</button>
$('button').click(function(){
$('#updatePlayerList').hide(1000);
})