The expected result is for the external div to become scrollable, and the textarea to wrap all of the text present. PFA a sandbox with the demo. Also, once you have exhausted the available height for a textarea, if you have another textarea below it, the latter becomes diminished in height.
https://codesandbox.io/s/summer-violet-bv33zq?file=/src/App2.jsx
The expected result is for the external div to become scrollable, and the textarea to wrap all of the text present. PFA a sandbox with the demo. Also, once you have exhausted the available height for a textarea, if you have another textarea below it, the latter becomes diminished in height. https://codesandbox.io/s/summer-violet-bv33zq?file=/src/App2.jsx