What I'm trying to do is in the return of a render method, to add a newline between each element of an array (of strings).
I've tried two ways (one of them is commented):
import React, { Component } from 'react'
export default class extends Component {
render() {
return (
<div>
<div>
<div className='Dog'>
{this.props.name}
<p>Age: {this.props.age}</p>
{/* <text>About: {this.props.fact.map((f) => f+'\n')}</text> */}
<p>{this.props.fact.join('\n')}</p>
</div>
</div>
</div>
)
}
}
The result is not what I was looking for:
image #1 - result without any of my attempts (as if - just rendering {this.props.fact}:
image #2 - with my attempt (both attempts end up with same result):
AAAAAAAAAAAH, I'm clueless!
Thanks in advance.

