I have a text area where I write something, but when I display the text in a paragraph it don't do the text break after pressing enter, this is the code (simplified):
const formInputs = {
biografia: ''
}
<textarea value={formInputs.biografia} placeholder='Biografia' type="text" />
<p>{formInputs.biografia}</p>
Now if I write in the text area this:
Hi, my name is Gabriele.
I'm from Milan.
In the paragraph It show me this:
Hi, my name is Gabriele. I'm from Milan.
How can I tell to the text area to have a break when I press the "enter" button?