JSFiddle - React, Tailwind, and code Playground

HTML

<table>
<tr> <!-- this tr I want to select -->
<td>
<div class="test"> text </div>
</td>
</tr>
</table>

JavaScript

alert($('.test').parents('tr').html());