JSFiddle - React, Tailwind, and code Playground

by nocircleno

JavaScript

var supportsTouch = ('ontouchstart' in document.documentElement);
console.log('supportsTouch', supportsTouch);
alert('Supports Touch: ' + supportsTouch);