Synthetic Events
function handleClick(event) {
setTimeout(function () {
console.log(event.target.name);
}, 1000);
}function handleClick(event) {
let name = event.target.name;
setTimeout(function () {
console.log(name);
}, 1000);
}Related links:
Last updated