JSFiddle - React, Tailwind, and code Playground
HTML
<table id="tbl1" border=1>
<tr>
<td>1</td><td>2</td>
</tr>
<tr>
<td>3</td><td>4</td>
</tr>
</table>
CSS
table {
width:100%;
}
JavaScript
$(function(){
$('#tbl1').on('click', 'td', function(){
alert($(this).html());
});
});