JSFiddle - React, Tailwind, and code Playground
HTML
<a id="btn-add-skills" href="https://www.google.co.in/">
Google
</a>
JavaScript
$(document).ready(function(){
$('#btn-add-skills').on('click', function(e) {
e.preventDefault();
e.stopPropagation();
alert("Stopped Redirecting");
// function call goes here
return false;
});
});