JSFiddle - React, Tailwind, and code Playground
HTML
<body><form>
<div id="to"></div>
---
<div id="from"><input type="file" class="new"></div>
</form>
</body>
JavaScript
$('.new').change(function() {
$('.new').appendTo('#to').removeClass('new');
$('#from').append('<input type="file" class="new">');
});