JSFiddle - React, Tailwind, and code Playground

JavaScript

alert("Coarse pointer: " + window.matchMedia("(pointer: coarse)").matches);