JSFiddle - React, Tailwind, and code Playground

by slace

HTML

<a href="#">Click</a>

JavaScript

$('a').mousedown(function (e) {
    console.log('one');
    
    e.preventDefault();
    e.stopPropogation();
});
    
setTimeout(function () {
    $('a').mousedown(function (e) {
        console.log('two');
    });
}, 0);