JSFiddle - React, Tailwind, and code Playground

HTML

<a id="thatTag" href="http://www.google.com">google</a>

JavaScript

$(document).on('click', 'a.thatTag', function (e) {
   // ...
   e.preventDefault();
});