JSFiddle - React, Tailwind, and code Playground
HTML
<ul>
<li>Li</li>
<li>Li</li>
<li>Li</li>
</ul>
JavaScript
//that isn't work
$('li').click(function() {
console.log('click');
});
setInterval(function() {
//update
$('ul').html($('ul').html());
//click multiple times to see that some clicks is missing
$('li').mousedown(function() {
console.log('click');
});
}, 300);