JSFiddle - React, Tailwind, and code Playground
HTML
<span data-href="http://stackoverflow.com" class="external-link">Stackoverflow (Click Me)</span>
JavaScript
$(document).on('click','span.external-link',function(){
var t = $(this),
URL = t.attr('data-href');
$('<a href="'+ URL +'" target="_blank">External Link</a>')[0].click();
});