JSFiddle - React, Tailwind, and code Playground

HTML

<div id="conte">
<input type="file" mane="imgs[]" onchange="ag()">
</div>

JavaScript

function ag(){
$('<input type="file" mane="imgs[]" onchange="ag()">').appendTo($('#conte'));
}