JSFiddle - React, Tailwind, and code Playground
HTML
<a class="pushStateLink" href="">Click</a>
JavaScript
$(document).on("click",".pushStateLink",function() {
// do some magic with $(this) element
alert("pushstate");
});
<a class="pushStateLink" href="">Click</a>
$(document).on("click",".pushStateLink",function() {
// do some magic with $(this) element
alert("pushstate");
});