diff --git a/_js/examples/hello.js b/_js/examples/hello.js index 3805db43..b71430a8 100644 --- a/_js/examples/hello.js +++ b/_js/examples/hello.js @@ -5,10 +5,10 @@ var HelloMessage = React.createClass({\n\ }\n\ });\n\ \n\ -React.renderComponent(, mountNode);\ +React.render(, mountNode);\ "; -React.renderComponent( +React.render( , document.getElementById('helloExample') ); diff --git a/_js/examples/markdown.js b/_js/examples/markdown.js index 6be96d5c..956d81de 100644 --- a/_js/examples/markdown.js +++ b/_js/examples/markdown.js @@ -28,10 +28,10 @@ var MarkdownEditor = React.createClass({\n\ }\n\ });\n\ \n\ -React.renderComponent(, mountNode);\ +React.render(, mountNode);\ "; -React.renderComponent( +React.render( , document.getElementById('markdownExample') ); diff --git a/_js/examples/timer.js b/_js/examples/timer.js index 2ca876a2..c54e8b4f 100644 --- a/_js/examples/timer.js +++ b/_js/examples/timer.js @@ -19,10 +19,10 @@ var Timer = React.createClass({\n\ }\n\ });\n\ \n\ -React.renderComponent(, mountNode);\ +React.render(, mountNode);\ "; -React.renderComponent( +React.render( , document.getElementById('timerExample') ); diff --git a/_js/examples/todo.js b/_js/examples/todo.js index 3db2b29a..6c628cea 100644 --- a/_js/examples/todo.js +++ b/_js/examples/todo.js @@ -33,10 +33,10 @@ var TodoApp = React.createClass({\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 b76d0254..d7525a83 100644 --- a/_js/html-jsx.js +++ b/_js/html-jsx.js @@ -78,5 +78,5 @@ var HELLO_COMPONENT = "\ } }); - React.renderComponent(, document.getElementById('jsxCompiler')); + React.render(, document.getElementById('jsxCompiler')); }()); diff --git a/_js/jsx-compiler.js b/_js/jsx-compiler.js index 6eb2f1e6..28364eb8 100644 --- a/_js/jsx-compiler.js +++ b/_js/jsx-compiler.js @@ -5,7 +5,7 @@ var HelloMessage = React.createClass({\n\ }\n\ });\n\ \n\ -React.renderComponent(, mountNode);\ +React.render(, mountNode);\ "; function transformer(harmony, code) { @@ -39,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 bfd8595d..4e453a79 100644 --- a/_js/live_editor.js +++ b/_js/live_editor.js @@ -190,7 +190,7 @@ var ReactPlayground = React.createClass({ try { var compiledCode = this.compileCode(); if (this.props.renderCode) { - React.renderComponent( + React.render( , mountNode ); @@ -199,7 +199,7 @@ var ReactPlayground = React.createClass({ } } catch (err) { this.setTimeout(function() { - React.renderComponent( + React.render(
{err.toString()}
, mountNode );