JSFiddle - React, Tailwind, and code Playground

HTML

<table>
<tr>
    <td>1</td>
    <td>is director</td>
    <td>is shareholder</td>
    <td>is secatary</td>
    <td>Edit</td>
    <td><button type="button" value="1" class="remove-officer-button">Remove</button></td>
</tr>    
<tr>
    <td>2</td>
    <td>is director</td>
    <td>is shareholder</td>
    <td>is secatary</td>
    <td>Edit</td>
    <td><button type="button" value="1" class="remove-officer-button">Remove</button></td>
</tr>   
</table>

JavaScript

$(".remove-officer-button").on('click', function(e) {
    var whichtr = $(this).closest("tr");

    alert('worked'); // Alert does not work
    whichtr.remove();      
});