JSFiddle - React, Tailwind, and code Playground

by nderscore

HTML

<div id="foo">
Click?
</div>

CSS

#foo {
  background-color: #b02019;
  width: 128px
  height: 48px;
}

JavaScript

document.getElementById('foo').addEventListener('touchstart', () => {
	console.log('touch start')
});

document.getElementById('foo').addEventListener('touchstart', () => {
	console.log('touch start')
});