How to use whiteSpace: 'pre-wrap' on React
<p>How can I use the style whiteSpace: 'pre-wrap' on React</p>

<p>I have a div that need to render the text using the format with spaces</p>

<pre><code>render() {
   &lt;div style={{whiteSpace: 'pre-wrap'}}
      keep formatting

      keep spaces
   &lt;/div&gt;
}
</code></pre>