JSFiddle - React, Tailwind, and code Playground

HTML

<textarea autofocus maxlength=10></textarea>