Skip to content

Commit

Permalink
Add console.log(err) to see errors from eval()
Browse files Browse the repository at this point in the history
If there is any problem with components, the code that is in use now
`React.render(<Alert ...)` is not enough.

Upgrading to `babel@5` has been brought it to light.
  • Loading branch information
AlexKVal committed Apr 19, 2015
1 parent a07ea20 commit 269d901
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/src/ReactPlayground.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ const ReactPlayground = React.createClass({
/* eslint-enable */
}
} catch (err) {
console.log(err);
this.setTimeout(() => {
React.render(
<Alert bsStyle='danger'>{err.toString()}</Alert>,
Expand Down

0 comments on commit 269d901

Please sign in to comment.