JSFiddle - React, Tailwind, and code Playground
by Keith Henry
HTML
<div id="content" contenteditable="true">
</div>
CSS
#content {
border: 1px dotted red;
}
JavaScript
const content = document.getElementById('content');
content.addEventListener('input', e => console.log(e));