\n\
- );\n\
- }\n\
-});\n\
-React.renderComponent(, mountNode);\
-";
+React.render(, mountNode);
+`;
-React.renderComponent(
+React.render(
,
document.getElementById('todoExample')
);
diff --git a/_js/html-jsx.js b/_js/html-jsx.js
index ae1d6ec3..d7525a83 100644
--- a/_js/html-jsx.js
+++ b/_js/html-jsx.js
@@ -1,23 +1,14 @@
/**
- * Copyright 2013-2014 Facebook, Inc.
+ * Copyright 2013-2014, Facebook, Inc.
+ * All rights reserved.
*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- * @jsx React.DOM
+ * This source code is licensed under the BSD-style license found in the
+ * LICENSE file in the root directory of this source tree. An additional grant
+ * of patent rights can be found in the PATENTS file in the same directory.
*/
/**
- * This is a web interface for the HTML to JSX converter contained in
+ * This is a web interface for the HTML to JSX converter contained in
* `html-jsx-lib.js`.
*/
;(function() {
@@ -87,5 +78,5 @@ var HELLO_COMPONENT = "\
}
});
- React.renderComponent(, document.getElementById('jsxCompiler'));
-}());
\ No newline at end of file
+ React.render(, document.getElementById('jsxCompiler'));
+}());
diff --git a/_js/jsfiddle-integration.js b/_js/jsfiddle-integration.js
new file mode 100644
index 00000000..ae5a64f4
--- /dev/null
+++ b/_js/jsfiddle-integration.js
@@ -0,0 +1,11 @@
+(function() {
+ var tag = document.querySelector(
+ 'script[type="application/javascript;version=1.7"]'
+ );
+ if (!tag || tag.textContent.indexOf('window.onload=function(){') !== -1) {
+ alert('Bad JSFiddle configuration, please fork the original React JSFiddle');
+ }
+ tag.setAttribute('type', 'text/jsx;harmony=true');
+ tag.textContent = tag.textContent.replace(/^\/\/Hello {this.props.name};\n\
}\n\
});\n\
\n\
-React.renderComponent(, mountNode);\
+React.render(, mountNode);\
";
function transformer(harmony, code) {
@@ -44,7 +39,7 @@ var CompilerPlayground = React.createClass({
);
},
});
-React.renderComponent(
+React.render(
,
document.getElementById('jsxCompiler')
);
diff --git a/_js/live_editor.js b/_js/live_editor.js
index 4d6c6670..4e453a79 100644
--- a/_js/live_editor.js
+++ b/_js/live_editor.js
@@ -1,8 +1,3 @@
-/**
- * @jsx React.DOM
- */
-
-
var IS_MOBILE = (
navigator.userAgent.match(/Android/i)
|| navigator.userAgent.match(/webOS/i)
@@ -195,7 +190,7 @@ var ReactPlayground = React.createClass({
try {
var compiledCode = this.compileCode();
if (this.props.renderCode) {
- React.renderComponent(
+ React.render(
,
mountNode
);
@@ -204,7 +199,7 @@ var ReactPlayground = React.createClass({
}
} catch (err) {
this.setTimeout(function() {
- React.renderComponent(
+ React.render(
diff --git a/_posts/2013-11-05-thinking-in-react.md b/_posts/2013-11-05-thinking-in-react.md
index f00aaa30..56125c2c 100644
--- a/_posts/2013-11-05-thinking-in-react.md
+++ b/_posts/2013-11-05-thinking-in-react.md
@@ -3,7 +3,7 @@ title: "Thinking in React"
author: Pete Hunt
---
-React is, in my opinion, the premier way to build big, fast Web apps with JavaScript. It's scaled very well for us at Facebook and Instagram.
+React is, in my opinion, the premier way to build big, fast Web apps with JavaScript. It has scaled very well for us at Facebook and Instagram.
One of the many great parts of React is how it makes you think about apps as you build them. In this post I'll walk you through the thought process of building a searchable product data table using React.
diff --git a/_posts/2014-09-16-react-v0.11.2.md b/_posts/2014-09-16-react-v0.11.2.md
new file mode 100644
index 00000000..b871e6d7
--- /dev/null
+++ b/_posts/2014-09-16-react-v0.11.2.md
@@ -0,0 +1,46 @@
+---
+title: React v0.11.2
+author: Paul O’Shannessy
+---
+
+Today we're releasing React v0.11.2 to add a few small features.
+
+We're adding support for two more DOM elements, `