JSFiddle - React, Tailwind, and code Playground

by Karthik Sivakumar

HTML

<a class="pushStateLink" href="">Click</a>

JavaScript

$(document).on("click",".pushStateLink",function() {
    // do some magic with $(this) element
    alert("pushstate");
  });