JSFiddle - React, Tailwind, and code Playground

HTML

<a href="http://ign.com">click</a>

JavaScript

$('a').on('contextmenu', function(e){
   // window.location = this.href;
    alert("hi");
    return false;
});