JSFiddle - React, Tailwind, and code Playground
HTML
<div>
<p>p original - both alerts fired.</p>
</div>
JavaScript
$('p').on('click', function(){
alert('standard event');
});
$('body').on('click', 'p', function(){
alert('delegated event');
});
setTimeout(function(){
$('div').append('<p>p added after 1 sec - only delegated alert fired.</p>');
}, 1000);