I have an Object of node in which there is an array of text i want to print node.text with line break in mapping function
{this.state.nodes.map((node, index) => {
return(
<div
key={index}
className={'node ' + node.className}
id={node.id}
ref={nodes => this.refs.nodes[index] = nodes}
style={node.style}
onClick={this.activeElem}
>
{node.text}
})}
it is printing an entire object i have tried \n and
both are not working how can i show it with LineBreak
This is mine Json object
here is the screenshot of my json object