JSFiddle - React, Tailwind, and code Playground

HTML

<table border="1">
<tr id="rowId">
<td>row 1, cell 1</td>
<td>row 1, cell 2</td>
</tr>
<tr>
<td>row 2, cell 1</td>
<td>row 2, cell 2</td>
</tr>
</table>

JavaScript

alert("before remove");
$('#rowId').remove();
alert("row removed");