JSFiddle - React, Tailwind, and code Playground

HTML

<div id="editor" contenteditable="true"><p>&#x200b;</p></div>

CSS

#editor {
    border: 1px solid red;
    min-height: 6em;
    margin: 1em;
    padding: 1eM
}