diff --git a/examples/commentsBox/index.html b/examples/commentsBox/index.html index 7c813dc6..29fd6906 100644 --- a/examples/commentsBox/index.html +++ b/examples/commentsBox/index.html @@ -104,13 +104,10 @@

Comments

} }); - React.renderComponent( + React.render( , document.getElementById('content') ); - - - diff --git a/examples/todoApp/js/todoAppFirebaseExplicit.js b/examples/todoApp/js/todoAppFirebaseExplicit.js index 1d217560..404d1804 100644 --- a/examples/todoApp/js/todoAppFirebaseExplicit.js +++ b/examples/todoApp/js/todoAppFirebaseExplicit.js @@ -60,4 +60,4 @@ var TodoApp2 = React.createClass({ } }); -React.renderComponent(, document.getElementById("todoApp2")); +React.render(, document.getElementById("todoApp2")); diff --git a/examples/todoApp/js/todoAppFirebaseImplicit.js b/examples/todoApp/js/todoAppFirebaseImplicit.js index 38a95f9e..8d84d00d 100644 --- a/examples/todoApp/js/todoAppFirebaseImplicit.js +++ b/examples/todoApp/js/todoAppFirebaseImplicit.js @@ -47,4 +47,4 @@ var TodoApp3 = React.createClass({ } }); -React.renderComponent(, document.getElementById("todoApp3")); +React.render(, document.getElementById("todoApp3")); diff --git a/examples/todoApp/js/todoAppOriginal.js b/examples/todoApp/js/todoAppOriginal.js index 8e6a596d..cb6c26ce 100644 --- a/examples/todoApp/js/todoAppOriginal.js +++ b/examples/todoApp/js/todoAppOriginal.js @@ -43,4 +43,4 @@ var TodoApp1 = React.createClass({ } }); -React.renderComponent(, document.getElementById("todoApp1")); \ No newline at end of file +React.render(, document.getElementById("todoApp1")); diff --git a/tests/specs/reactfire.spec.js b/tests/specs/reactfire.spec.js index 8f6541b2..0066f028 100644 --- a/tests/specs/reactfire.spec.js +++ b/tests/specs/reactfire.spec.js @@ -30,7 +30,7 @@ describe("ReactFireMixin Tests:", function() { } }); - React.renderComponent(new TestComponent(), document.body); + React.render(new TestComponent(), document.body); }); it("bindAsArray() throws errors given invalid bind variables", function() { @@ -55,7 +55,7 @@ describe("ReactFireMixin Tests:", function() { } }); - React.renderComponent(new TestComponent(), document.body); + React.render(new TestComponent(), document.body); }); it("bindAsArray() does not throw errors given valid inputs", function() { @@ -75,7 +75,7 @@ describe("ReactFireMixin Tests:", function() { } }); - React.renderComponent(new TestComponent(), document.body); + React.render(new TestComponent(), document.body); }); it("bindAsArray() does not throw an error given a limit query", function() { @@ -93,7 +93,7 @@ describe("ReactFireMixin Tests:", function() { } }); - React.renderComponent(new TestComponent(), document.body); + React.render(new TestComponent(), document.body); }); it("bindAsArray() binds to remote Firebase data as an array", function(done) { @@ -118,7 +118,7 @@ describe("ReactFireMixin Tests:", function() { } }); - React.renderComponent(new TestComponent(), document.body); + React.render(new TestComponent(), document.body); }); it("bindAsArray() binds to remote Firebase data as an array (limit query)", function(done) { @@ -143,7 +143,7 @@ describe("ReactFireMixin Tests:", function() { } }); - React.renderComponent(new TestComponent(), document.body); + React.render(new TestComponent(), document.body); }); }); @@ -170,7 +170,7 @@ describe("ReactFireMixin Tests:", function() { } }); - React.renderComponent(new TestComponent(), document.body); + React.render(new TestComponent(), document.body); }); it("bindAsObject() throws errors given invalid bind variables", function() { @@ -195,7 +195,7 @@ describe("ReactFireMixin Tests:", function() { } }); - React.renderComponent(new TestComponent(), document.body); + React.render(new TestComponent(), document.body); }); it("bindAsObject() does not throw errors given valid inputs", function() { @@ -215,7 +215,7 @@ describe("ReactFireMixin Tests:", function() { } }); - React.renderComponent(new TestComponent(), document.body); + React.render(new TestComponent(), document.body); }); it("bindAsObject() does not throw an error given a limit query", function() { @@ -233,7 +233,7 @@ describe("ReactFireMixin Tests:", function() { } }); - React.renderComponent(new TestComponent(), document.body); + React.render(new TestComponent(), document.body); }); it("bindAsObject() binds to remote Firebase data as an object", function(done) { @@ -258,7 +258,7 @@ describe("ReactFireMixin Tests:", function() { } }); - React.renderComponent(new TestComponent(), document.body); + React.render(new TestComponent(), document.body); }); it("bindAsObject() binds to remote Firebase data as an object (limit query)", function(done) { @@ -283,7 +283,7 @@ describe("ReactFireMixin Tests:", function() { } }); - React.renderComponent(new TestComponent(), document.body); + React.render(new TestComponent(), document.body); }); }); @@ -310,7 +310,7 @@ describe("ReactFireMixin Tests:", function() { } }); - React.renderComponent(new TestComponent(), document.body); + React.render(new TestComponent(), document.body); }); it("unbind() throws errors given unbound bind variable", function() { @@ -335,7 +335,7 @@ describe("ReactFireMixin Tests:", function() { } }); - React.renderComponent(new TestComponent(), document.body); + React.render(new TestComponent(), document.body); }); it("unbind() does not throw errors given valid bind variables", function() { @@ -356,7 +356,7 @@ describe("ReactFireMixin Tests:", function() { } }); - React.renderComponent(new TestComponent(), document.body); + React.render(new TestComponent(), document.body); }); it("unbind() does not throw an error given a limit query", function() { @@ -377,7 +377,7 @@ describe("ReactFireMixin Tests:", function() { } }); - React.renderComponent(new TestComponent(), document.body); + React.render(new TestComponent(), document.body); }); it("unbind() unbinds the state bound to Firebase as an array", function(done) { @@ -404,7 +404,7 @@ describe("ReactFireMixin Tests:", function() { } }); - React.renderComponent(new TestComponent(), document.body); + React.render(new TestComponent(), document.body); }); it("unbind() unbinds the state bound to Firebase as an object", function(done) { @@ -431,7 +431,7 @@ describe("ReactFireMixin Tests:", function() { } }); - React.renderComponent(new TestComponent(), document.body); + React.render(new TestComponent(), document.body); }); }); @@ -460,7 +460,7 @@ describe("ReactFireMixin Tests:", function() { } }); - React.renderComponent(new TestComponent(), document.body); + React.render(new TestComponent(), document.body); }); it("_bind() does not throw error given valid inputs", function() { @@ -479,7 +479,7 @@ describe("ReactFireMixin Tests:", function() { } }); - React.renderComponent(new TestComponent(), document.body); + React.render(new TestComponent(), document.body); }); }); });