JSFiddle - React, Tailwind, and code Playground
by willemvb
HTML
<a href="#">click or touch</a>
CSS
html{
height: 100%;
}
a{
font-family: sans-serif;
font-size: 40px;
}
a:focus{
background: #ccccdd;
outline: none;
}
JavaScript
$('a').click(function(){
$(this).focus();
return false;
})
$('html').click(function(){
$('a:focus').blur();
})