JSFiddle - React, Tailwind, and code Playground

HTML

<a href='http://www.jsfiddle.net'><span>link</span></a>

JavaScript

$('span').click(function(event) {
  window.open('http://www.google.com');
  event.stopImmediatePropagation();
  //The line below does prevent jsfiddle.net from loading on the right.
  //event.preventDefault();
});
$('a').click(function() {
  //This function is not triggered as event propagation has been stopped.
  alert('You will never see this.');
});