JSFiddle - React, Tailwind, and code Playground
HTML
<html>
<head>
</head>
<body>
<div class="wraper">
<div class="row">hi</div>
</div>
<button>Add Row</button>
</body>
</html>
CSS
.row{
width: 100%;
height: 20px;
background-color: yellow;
margin-bottom: 5px;
}
.hidden{
display: none;
}
JavaScript
$(function() {
$('button').on('click', function() {
$row = $('div.row:first').clone();
$('div.wraper').append($row);
});
});