JSFiddle - React, Tailwind, and code Playground
HTML
<a href="www.google.com" onclick="return fun(this);">Google</a>
JavaScript
function fun(that){
console.log(that.href);
window.open(that.href, "New Window", "height=600,width=600");
return false;
}