JSFiddle - React, Tailwind, and code Playground
HTML
<div contenteditable="true" id="editor">Please type something in here, not in the textarea below</div>
<textarea id="log" rows="10" cols="40" readonly></textarea>
JavaScript
document.getElementById("editor").addEventListener("onblur", function() {
document.getElementById("log").value += "input event fired\n";
}, false);