JSFiddle - React, Tailwind, and code Playground
HTML
<a href="www.google.com">Test</a>
<div class="toolbar">
<a href="#test2">Test 2</a>
</div>
JavaScript
$("a").click(function() {
});
$(".toolbar a").click(function() {
alert("Do something");
});