JSFiddle - React, Tailwind, and code Playground
HTML
<div id="inputs">
<button onclick="getinput()">Add</button>
</div>
JavaScript
function getinput()
{
var name="<br>Name : <input type='text' name='name'>";
var age=" Age :<button type='button' class='btn btn-primary' title='Delete' id='btnDelete'><i class='fa fa-trash-o'></i></button>";
$("#inputs").append(name,age);
}