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:
Žiga 2014-11-01 11:41:45 +01:00
parent c669284865
commit 9b4777a523
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ layout: default
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)