JSFiddle - React, Tailwind, and code Playground
by tankchintan
HTML
<div id="nav">this is the nav
<a href="#first" class="first">first</a>
</div>
JavaScript
$(document).ready(function() {
$("#nav").on("click", "a", function() {
console.log("\n\n", "delegated", this, $(this));
});
$("#nav a").on("click", function() {
console.log("\n\n", "explicit ", this, $(this));
});
});