JSFiddle - React, Tailwind, and code Playground

HTML

<div id="main"></div>

CSS

#main {
  height: 200px;
  width: 200px;
  background: #F44336;
}

JavaScript

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