JSFiddle - React, Tailwind, and code Playground JavaScript document.onclick = function(e) { alert(e.which); };