JSFiddle - React, Tailwind, and code Playground

HTML

<div id="app">
        
    <button class="btn-create">Click</button>
    
</div>

JavaScript

$(document).ready(function() {
	$('.btn-create').on('click', function() {
    	$('#app').append('<button class="test">SUCCESS</button>');
    });
    $('.test').on('click', function() {
    	$(this).remove();
    });
});