Textarea Auto Grow

Textarea Auto Grow

This show how to make text are grow automatically.

jsx

<textarea
  onInput={(e) => {
      e.target.style.height = "5px";
    e.target.style.height = e.target.scrollHeight + "px";
  }}
/>;