134
rated 0 times
[
138]
[
4]
/ answers: 1 / hits: 101727
/ 8 Years ago, mon, march 28, 2016, 12:00:00
Using Facebook React
.
In a settings page, I have a multiline textarea
where a user can enter multiline text (in my case, an address).
<textarea value={address} />
When I try to display the address, so something like {address}
, it doesn't show the line breaks and is all on one line.
<p>{address}</p>
Any ideas how to solve this?
More From » reactjs