JSFiddle - React, Tailwind, and code Playground

by tabalinas

HTML

<div id="test"></div>

CSS

#test { border: 1px solid red; width: 100px; height: 100px; }

JavaScript

$("#test").on("touchstart touchend", function(e) {
    console.log(e.type);
});