Update react.md

For react, you can't use class= when compiling your divs - this should probably be className=.

Awesome cheatsheet!
This commit is contained in:
Daniel Goldshlack 2015-05-27 14:23:11 -04:00
parent cbfaa5ed76
commit 5bb84fef07
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ Use [states](https://facebook.github.io/react/docs/tutorial.html#reactive-state)
```js ```js
render: function () { render: function () {
return <div class={this.props.fullscreen ? 'full' : ''}> return <div className={this.props.fullscreen ? 'full' : ''}>
Welcome, {this.state.username} Welcome, {this.state.username}
</div>; </div>;
} }