JSFiddle - React, Tailwind, and code Playground
HTML
<a id="element" href="#">click here</a>
JavaScript
$('#element').mousedown(function(event) {
event.preventDefault();
if(event.which == 3) { // right click
window.open("http://google.com","");
}
});