JSFiddle - React, Tailwind, and code Playground

HTML

<ul>
    <li>Default item</li>
    <li>Default item</li>
</ul>
<button>Append</button>

JavaScript

$('button').live('click', function(){
    $('ul').append('<li>Added item</li>'); //This action is done by an external script.
});

$('ul li').append('<b> x</b>');








/* The thing is, I need to append the "x" mark to all newly elements to the dom. 

In this case only default elements are appended with the "x" mark.

Newly added elements are not appended by "x" */