JSFiddle - React, Tailwind, and code Playground

by Ronny

HTML

<button>Add</button>

<div class="tableContainer">
    <table><tr><td>Hi</td></tr></table>
</div>

CSS

.tableContainer {max-height: 100px; overflow-y: scroll;}
tr {border: 1px solid #777;}

JavaScript

$('button').click(function(){
    var container = $('.tableContainer');
    container.find('tr:first').clone().appendTo(container.find('table'));
});