JSFiddle - React, Tailwind, and code Playground

by Matt Ball

HTML

<a href="http://google.com">Go to Google</a>

<button id="clickme">Click me to break the link</button>

JavaScript

$('#clickme').click(function ()
{
    $('a').click(function (e)
    {
        e.preventDefault();
    });
});