One issue I'm facing in my React application is with a textarea. When the text displayed is long, the textarea does not expand to show the full text; instead, it adds a scroll for scrolling down. How do I make the textarea expand based on the content size I have set?
Here's my code snippet:
<div className="width_100">
<textarea className="home_post_text margin_bottom10px" value={this.urlify(postData.heading)}></textarea>
</div>
In my React application, the text is cut off and I need to scroll down to see it in its entirety. How can I modify the textarea to display the full text without requiring scrolling?