JSFiddle - React, Tailwind, and code Playground
HTML
<table id="table">
<tr style="display:none;">
<td>cell1</td>
</tr>
<tr>
<td>cell2</td>
</tr>
</table>
JavaScript
$(document).ready(function(){
alert($("#table tr:visible").length);
});