JSFiddle - React, Tailwind, and code Playground

HTML

<a href="//google.nl">test</a>

JavaScript

$('a').on('click', function(e) { 
    window.location = $(this).href; 
    return false; 
});