JSFiddle - React, Tailwind, and code Playground

HTML

<form>
    <div id="inputs">
        <p>
            <input type="text" id="user" />
        </p>
    </div>
    <hr />
    <input type="button" value="Add Another Row" class="add" id="add" />
</form>

JavaScript

$(function () {
     var node = "";
     var count = 0;

     $('#add').on('click', function () {
         node = '<p><input type="text" id="' + count + '"/><a href="#" class="remove">Remove Number' + count + '</a></p>';
         count++;
         $('#inputs').append(node);
     });

     $('#inputs').on('click', '.remove', function () {
         $(this).parent().remove();
         return false;
     });
 });