JSFiddle - React, Tailwind, and code Playground
HTML
<table>
<tr>
<td>1</td>
<td>2</td>
</tr>
<tr>
<td>3</td>
<td>4</td>
</tr>
</table>
JavaScript
// array of text of each td
var texts = $("td").map(function() {
return $(this).text();
});
console.log(texts);