Replaced deprecated renderComponent() with render()

This commit is contained in:
jacobawenger
2014-11-10 18:46:47 -08:00
parent 0c58ac1d6a
commit cad4742e71
5 changed files with 24 additions and 27 deletions

View File

@@ -104,13 +104,10 @@
}
});
React.renderComponent(
React.render(
<CommentBox />,
document.getElementById('content')
);
</script>
</body>
</html>

View File

@@ -60,4 +60,4 @@ var TodoApp2 = React.createClass({
}
});
React.renderComponent(<TodoApp2 />, document.getElementById("todoApp2"));
React.render(<TodoApp2 />, document.getElementById("todoApp2"));

View File

@@ -47,4 +47,4 @@ var TodoApp3 = React.createClass({
}
});
React.renderComponent(<TodoApp3 />, document.getElementById("todoApp3"));
React.render(<TodoApp3 />, document.getElementById("todoApp3"));

View File

@@ -43,4 +43,4 @@ var TodoApp1 = React.createClass({
}
});
React.renderComponent(<TodoApp1 />, document.getElementById("todoApp1"));
React.render(<TodoApp1 />, document.getElementById("todoApp1"));

View File

@@ -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);
});
});
});