JSFiddle - React, Tailwind, and code Playground

by sandro_paganotti

HTML

<button>click me</button>

JavaScript

document.addEventListener('click', recordClick, true);
var stack = new Array();

function recordClick(event){
    stack.push({
        time: new Date(),
        type: event.type
    });
    
}