mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-26 18:58:17 +00:00
fixed error formatting in live editor (#9497)
This commit is contained in:
committed by
Dan Abramov
parent
0bc3c0fa77
commit
4137f4fb78
@@ -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