Skip to content

Commit

Permalink
Fix live editor examples on home page.
Browse files Browse the repository at this point in the history
Remember that one time I wrote release notes and said:

> This is a breaking change - if you were using class, you must change
> this to className or your components will be visually broken.

Good thing I didn't listen to myself!
  • Loading branch information
zpao committed Oct 17, 2013
1 parent 44ad2b5 commit b46b6a8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/_js/live_editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ var CodeMirrorEditor = React.createClass({
}

return (
<div class={this.props.className}>
<div className={this.props.className}>
{editor}
</div>
);
Expand Down Expand Up @@ -76,22 +76,22 @@ var ReactPlayground = React.createClass({
content =
<CodeMirrorEditor
onChange={this.bindState('code')}
class="playgroundStage"
className="playgroundStage"
codeText={this.state.code}
/>;
} else if (this.state.mode === this.MODES.JS) {
content =
<div class="playgroundJS playgroundStage">
<div className="playgroundJS playgroundStage">
{this.getDesugaredCode()}
</div>;
}

return (
<div class="playground">
<div class="playgroundCode">
<div className="playground">
<div className="playgroundCode">
{content}
</div>
<div class="playgroundPreview">
<div className="playgroundPreview">
<div ref="mount" />
</div>
</div>
Expand Down Expand Up @@ -121,7 +121,7 @@ var ReactPlayground = React.createClass({
}
} catch (e) {
React.renderComponent(
<div content={e.toString()} class="playgroundError" />,
<div content={e.toString()} className="playgroundError" />,
mountNode
);
}
Expand Down

0 comments on commit b46b6a8

Please sign in to comment.