JSFiddle - React, Tailwind, and code Playground

JavaScript

document.onclick = function(e){
   console.log(e.type);
};