From 9b4777a523b032ebd7136748243947076f653787 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=BDiga?= Date: Sat, 1 Nov 2014 11:41:45 +0100 Subject: [PATCH] update for react 0.12.0 http://facebook.github.io/react/blog/2014/10/16/react-v0.12-rc1.html I changed `Component()` to `` because otherwise you now need to use `React.createElement(Comment, null),` --- react.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react.md b/react.md index 716b09a55..a69a61d34 100644 --- a/react.md +++ b/react.md @@ -17,7 +17,7 @@ layout: default var Component = React.createClass({ ... }); - var compo = React.renderComponent(Component(), mountnode); + var compo = React.render(, mountnode); ### [API](http://facebook.github.io/react/docs/component-api.html)