update for react 0.12.0
http://facebook.github.io/react/blog/2014/10/16/react-v0.12-rc1.html I changed `Component()` to `<Component />` because otherwise you now need to use `React.createElement(Comment, null),`
This commit is contained in:
parent
c669284865
commit
9b4777a523
2
react.md
2
react.md
|
@ -17,7 +17,7 @@ layout: default
|
||||||
|
|
||||||
var Component = React.createClass({ ... });
|
var Component = React.createClass({ ... });
|
||||||
|
|
||||||
var compo = React.renderComponent(Component(), mountnode);
|
var compo = React.render(<Component />, mountnode);
|
||||||
|
|
||||||
### [API](http://facebook.github.io/react/docs/component-api.html)
|
### [API](http://facebook.github.io/react/docs/component-api.html)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue