JSFiddle - React, Tailwind, and code Playground
by j08691
HTML
<button>Add</button>
JavaScript
$('body').on({
hover: function() {
console.log("yeahhhh!!! but this doesn't work for me :(");
},
click: function() {
console.log("yeahhhh!!! but this doesn't work for me :(");
}
},'#my-button');
$('button').click(function() {
$('body').append('<button id="my-button">New button</button>');
});