JSFiddle - React, Tailwind, and code Playground
HTML
<table id="colortable">
<tr id="firstrow">
<span class="colors">Red</span>
</tr>
<tr>
<span class="colors">Orange</span>
</tr>
<tr>
<span class="hues">Blue</span>
</tr>
<tr>
<span class="shades">Green</span>
</tr>
<tr>
<span class="colors">Brown</span>
</tr>
</table>
JavaScript
$(document).ready(function() {
$("#colortable").remove();
console.log($("#colortable").remove());
});