JSFiddle - React, Tailwind, and code Playground

by Tsuneo Yoshioka

HTML

<textarea rows="3" oninput="this.rows=this.value.split('\n').length"></textarea>

<textarea style="width:auto;height:auto;">hoge</textarea>

<div contenteditable style="border: solid 1px;">
fuga
</div>