JSFiddle - React, Tailwind, and code Playground

HTML

<button id="create">create new button</button>
<button class="hover">hover me</button>
<div></div>

JavaScript

var createBtn = $("#create");

createBtn.click(function() {
    $('div').append('<button class="hover">new hover button</button');  
    return false;        
}); 

$('.hover').hover(function() {
    alert('you hovered the button!');
}, function() {
    alert('you removed the hover from button!');
});