JSFiddle - React, Tailwind, and code Playground
HTML
<table id="table">
<tr>
<td>me</td>
<td>you</td>
<td>we</td>
</tr>
</table>
<p id="out"></p>
JavaScript
$(function(){
$('#table1').on('click','td',function(){
var child_number = $(this).nthchild();
$('#out').text(child_number);
});
});