JSFiddle - React, Tailwind, and code Playground
HTML
<input type="button" id="submitId" value="Submit">
<div style="display: none;">
<table border="1" id="tableId">
<tr>
<td>
<input type="button" id="inputIdButton" value="Save">
</td>
<td>
<input type='file' id='fileId'>
</td>
</tr>
</table>
</div>
JavaScript
$('#submitId').on('click', function () {
$(document.body).append($('#tableId').show().clone());
});