JSFiddle - React, Tailwind, and code Playground
HTML
<a href="http://www.google.de" id="a">Touch or Click Me!</a>
JavaScript
var isTouch = ('ontouchstart' in window);
var event = isTouch ? 'touchend' : 'mouseup';
document.getElementById('a').addEventListener(event, function(e){
e.preventDefault();
location.href = this.href;
}, false);
if(isTouch)
document.addEventListener('touchstart', function(e){ e.preventDefault(); }, false);