JSFiddle - React, Tailwind, and code Playground
HTML
<div class='fields'>
</div>
<a href='#' class='add'>Adicionar Campo</a>
JavaScript
var start = 1;
$(".add").click(function(){
$(".fields").append("<button class='btn btn-remove'>#"+start+" Clique para apagar</button>");
start++;
});
$('body').on('click', '.btn-remove', function() {
$(this).remove();
});