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').live('change',function() {
    $('.new').appendTo('#to').removeClass('new');
        $('#from').append(
               $('<input></input>').attr('type','file')
                                  .addClass('new')
                      );
  });