JSFiddle - React, Tailwind, and code Playground
CSS
body {
height: 100vh;
width: 100vw;
}
JavaScript
function Event() {
return {
gen: function * () {
const eventData = yield true
},
get p() {
return new Promise()
}
}
while (true) {
}
}
var event = Event()
document.body.addEventListener('click', function(e) {
event.next(e)
})