JSFiddle - React, Tailwind, and code Playground
HTML
<div>
<div> <a href="#remove" class="removelink" > remove </a> </div>
<table>
<tr> <td>test1</td> </tr>
<tr> <td>test2</td> </tr>
</table>
</div>
JavaScript
$('.removelink').click(function(){
$(this).parent().siblings('table').find('tr:last').remove();
});