JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" id='one'>
<button>submit</button>   
<div id="target"></div>

JavaScript

$(function(){
    $('button').click(function(){
        var inputVal = $('#one').val();
        var newInputEl = $("<input type='text' id='two'>");
        newInputEl.val(inputVal);
        $('#target').html( newInputEl );
    });
    
});