JSFiddle - React, Tailwind, and code Playground

HTML

<ul id="list">list</ul>

JavaScript

$('#list').click(function () {
    $('#list').html("<li> blah </li> <li> blooh </li>");
}).on("mouseenter", "li", function () {
    this.style.backgroundColor = "red";
}).on("mouseleave", "li", function () {
    this.style.backgroundColor = "white";
});