JSFiddle - React, Tailwind, and code Playground

HTML

see the difference<br>
<a data-href="http://placehold.it/500">new</a>
<a href="http://placehold.it/500">old</a>

CSS

a {
    text-decoration: underline;
    cursor: pointer;
}

JavaScript

$('a[data-href]').on('click', function(e) {
    e.preventDefault();
    window.location.href = $(this).data('href');
});