mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
fixed error formatting in live editor (#9497)
(cherry picked from commit 7ccfb07337)
This commit is contained in:
committed by
Dan Abramov
parent
be4f0c2f41
commit
e38445d04a
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user