JSFiddle - React, Tailwind, and code Playground
by rgthree
HTML
<button id="clicker">Click Me</button>
CSS
body {background:#CCC;}
button {background:#FFF; color:#000;}
button:active {background:#000; color:#FFF;}
JavaScript
$('clicker').addEvent('click', function(e){
e.stop();
});
$('clicker').addEvent('touchend', function(){
document.body.style.backgroundColor = '#FC0';
})