diff --git a/docs/src/ReactPlayground.js b/docs/src/ReactPlayground.js
index bcc4bacc12..4a0c64cbaa 100644
--- a/docs/src/ReactPlayground.js
+++ b/docs/src/ReactPlayground.js
@@ -1,5 +1,5 @@
import React from 'react';
-import classNames from 'classnames';
+import * as modClassNames from 'classnames';
import * as modAccordion from '../../src/Accordion';
import * as modAlert from '../../src/Alert';
import * as modBadge from '../../src/Badge';
@@ -45,6 +45,7 @@ import * as modWell from '../../src/Well';
import {CodeMirror, IS_NODE} from './CodeMirror';
import babel from 'babel-core/browser';
+const classNames = modClassNames.default;
/* eslint-disable */
const Accordion = modAccordion.default;
const Alert = modAlert.default;
@@ -279,8 +280,8 @@ const ReactPlayground = React.createClass({
console.error(e);
}
+ let compiledCode = this.compileCode();
try {
- let compiledCode = this.compileCode();
if (this.props.renderCode) {
React.render(
,
@@ -292,7 +293,7 @@ const ReactPlayground = React.createClass({
/* eslint-enable */
}
} catch (err) {
- console.log(err);
+ console.log(err, compiledCode);
this.setTimeout(() => {
React.render(
{err.toString()},