JSFiddle - React, Tailwind, and code Playground
HTML
<html>
<head>
</head>
<body>
<button>Click me!</button>
<table>
<tr><td>a</td><td>c</td></tr>
</table>
</body>
</html>
CSS
table{
width:100%;
background:#eeeeee;
}
JavaScript
function addRowToTable(table, row) {
table.append(row);
}
$(document).ready(function() {
$('button').click(function() {
var row = "<tr><td>cell 1</td><td>cell 2</td></tr>";
addRowToTable($('table'), row);
});
});