showing results for - "react replace all line breaks with br"
David
03 May 2016
1{
2    string.split('\n').map((line, i) => (
3        <span key={i}>
4            {line}
5            <br/>
6        </span>
7    ))
8}