JSFiddle - React, Tailwind, and code Playground

HTML

<div id="updatePlayerList">
//some content
    
    asdasdasdasd
</div>

<button>hide</button>

JavaScript

$('button').click(function(){
    $('#updatePlayerList').hide(1000);
})