JSFiddle - React, Tailwind, and code Playground
HTML
<p>Users</p>
<ul id="users-list">
<li><input type="text" name="names[]" value="" placeholder="enter name" /></li>
</ul>
<button id="add-more">Add More Users</button>
JavaScript
$(document).ready(function() {
$users_list = $('#users-list');
$add_more = $('#add-more');
$add_more.on('click', function() {
$users_list.find('li:first').clone().find(':input').val('').end().appendTo($users_list);
});
});