fixed error formatting in live editor (#9497)

This commit is contained in:
Sriram Thiagarajan
2017-04-26 18:36:53 +05:30
committed by Dan Abramov
parent 0bc3c0fa77
commit 4137f4fb78

View File

@@ -221,7 +221,7 @@ var ReactPlayground = React.createClass({
} catch (err) {
this.setTimeout(function() {
ReactDOM.render(
<div className="playgroundError">{err.toString()}</div>,
<pre style={{overflowX: 'auto'}} className="playgroundError">{err.toString()}</pre>,
mountNode
);
}, 500);