JSFiddle - React, Tailwind, and code Playground
by Alex Alex
HTML
<input>
JavaScript
var input = document.querySelector('input');
var events = [
'focus',
'blur',
'focusin',
'focusout',
'input',
'cut',
'paste',
'change'
];
events.forEach(function (event) {
input.addEventListener(event, function (e) {
console.log(e.type);
}, false);
});