JSFiddle - React, Tailwind, and code Playground
HTML
Today(<span id="counter">3</span>)
<table>
<tr><td>hello</td><td>delete</td></tr>
<tr><td>world</td><td>delete</td></tr>
<tr><td>hi</td><td>delete</td></tr>
</table>
CSS
body { font: 16px 'Lucida Grande', Verdana, Arial, sans-serif }
table { border-collapse: collapse }
td { border: 1px solid #ccc; padding: .2em 2em }
JavaScript
$(function() {
$('table tr').find('td:last').click(function() {
$(this).parent().remove();
$('#counter').html($('#counter').html() - 1)
})
})