JSFiddle - React, Tailwind, and code Playground

HTML

<div id="myTable"> </div>
<div style="display:none">
    <table>
        <tr id="rowTemplate">
            <td>
                <input type="button" value="Remove" onclick="this.parentNode.parentNode.parentNode.removeChild(this.parentNode.parentNode);" />
            </td>
            <td>
                <input type="text" value="" name="newLinkTitle[]" size="50" />
            </td>
        </tr>
    </table>
</div>
<span id="addRowHere">  
  <input type="button" id="moreusers" value="Fler användare" />
</span>

JavaScript

document.getElementById('moreusers').onclick = addMoreFields;    //    set binding

var newRow = document.getElementById('rowTemplate').cloneNode(true),
    myTable = document.getElementById('myTable');

function addMoreFields() {
    myTable.appendChild(newRow.cloneNode(true));
}