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?