JSFiddle - React, Tailwind, and code Playground
HTML
<a href="#">Test</a>
JavaScript
jQuery.fn.equals = function(selector) {
return jQuery(this).get(0)==jQuery(selector).get(0);
};
$(function() {
$("a").click(function() {
alert("a" + $(this).equals(this) );
});
});