JSFiddle - React, Tailwind, and code Playground
HTML
<table onclick="$(':not(thead, thead *)', 'table').remove();">
<thead>
<tr> <td> CLICK ME!! </td> </tr>
</thead>
<tbody>
<tr> <td> body </td> </tr>
</tbody>
<tfoot>
<tr> <td> body</td> </tr>
</tfoot>
</table>