JSFiddle - React, Tailwind, and code Playground

HTML

<table>
   <tr> 
       <td><input type="button" value="Delete Row1"></td>
   </tr>
   <tr> 
       <td><input type="button" value="Delete Row2" ></td>
   </tr>
   <tr> 
       <td><input type="button" value="Delete Row3"></td>
   </tr>
</table>

JavaScript

$('input[type="button"]').click(function(e){
   $(this).closest('tr').remove()
})