JSFiddle - React, Tailwind, and code Playground
HTML
<ul></ul>
<button>Add</button>
JavaScript
$(function(){
var list = $('ul');
$('button').on('click',function(){
list.append('<li class="hello">hello item<li>');
});
//the handler for the items
$('ul').on('click','.hello',function(){
alert('hello clicked');
});
});