I am using TextArea of AntDesign, when I input, say, 2-3 paragraphs in it, and hit enter to display it in a row, but it displays everything in one paragraph. I want the exact formatting that I did while entering in the text area. How to do that?
I am simply using Text area -
<TextArea
rows={2}
style={{ width: "100%" }}
defaultValue={this.state.value}
onClick={this.handleValue}
/>
and to display on right side-
<div>{this.state.value}</div>
EXPECTED
Hey, how are you doing today? I am fine. i hope your are fine
do give me a call when you are free.
contact - 1234567890
WHAT I GET IN RESULT
Hey, how are you doing today? I am fine. i hope your are fine do give me a call when you are free. contact - 1234567890