JSFiddle - React, Tailwind, and code Playground
HTML
<textarea>
</textarea>
CSS
textarea {
width:600px;
height:500px;
padding:5px;
line-height:1.4;
font-family:helvetica, sans-serif;
}
JavaScript
function Enunciate( ta ) {
this.awaitNext = true; // awaiting next word to type
ta.addEventListener('keyup', this.lettercapture);
}
Enunciate.prototype.lettercapture = function(ev) {
ev.preventDefault();
debugger;
};
new Enunciate(document.querySelector('textarea'));