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:
parent
cbfaa5ed76
commit
5bb84fef07
2
react.md
2
react.md
|
@ -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>;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue