JSFiddle - React, Tailwind, and code Playground
HTML
<table id="cloningTable">
<tr >
<td><input name="row1" ></td>
</tr>
</table>
<div id="clone">CLONE</div>
JavaScript
$("#clone").click(function() {
$("#cloningTable tr:last").after($("#cloningTable input:last").clone());
$("#cloningTable tr:last").attr("name", "input" + $("#cloningTable input").length);
});