JSFiddle - React, Tailwind, and code Playground
JavaScript
$('body').delegate('a[href$="#"]', 'click', function() {
alert('y u no alert');
});
$('<a />').text("clicky").attr("href", "#").appendTo('body');
$('body').delegate('a[href$="#"]', 'click', function() {
alert('y u no alert');
});
$('<a />').text("clicky").attr("href", "#").appendTo('body');