Skip to content

Commit

Permalink
Replaced deprecated renderComponent() with render()
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobawenger committed Nov 11, 2014
1 parent 0c58ac1 commit cad4742
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 27 deletions.
5 changes: 1 addition & 4 deletions examples/commentsBox/index.html
Expand Up @@ -104,13 +104,10 @@ <h1>Comments</h1>
}
});

React.renderComponent(
React.render(
<CommentBox />,
document.getElementById('content')
);


</script>

</body>
</html>
2 changes: 1 addition & 1 deletion examples/todoApp/js/todoAppFirebaseExplicit.js
Expand Up @@ -60,4 +60,4 @@ var TodoApp2 = React.createClass({
}
});

React.renderComponent(<TodoApp2 />, document.getElementById("todoApp2"));
React.render(<TodoApp2 />, document.getElementById("todoApp2"));
2 changes: 1 addition & 1 deletion examples/todoApp/js/todoAppFirebaseImplicit.js
Expand Up @@ -47,4 +47,4 @@ var TodoApp3 = React.createClass({
}
});

React.renderComponent(<TodoApp3 />, document.getElementById("todoApp3"));
React.render(<TodoApp3 />, document.getElementById("todoApp3"));
2 changes: 1 addition & 1 deletion examples/todoApp/js/todoAppOriginal.js
Expand Up @@ -43,4 +43,4 @@ var TodoApp1 = React.createClass({
}
});

React.renderComponent(<TodoApp1 />, document.getElementById("todoApp1"));
React.render(<TodoApp1 />, document.getElementById("todoApp1"));
40 changes: 20 additions & 20 deletions tests/specs/reactfire.spec.js
Expand Up @@ -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() {
Expand All @@ -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() {
Expand All @@ -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() {
Expand All @@ -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) {
Expand All @@ -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) {
Expand All @@ -143,7 +143,7 @@ describe("ReactFireMixin Tests:", function() {
}
});

React.renderComponent(new TestComponent(), document.body);
React.render(new TestComponent(), document.body);
});
});

Expand All @@ -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() {
Expand All @@ -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() {
Expand All @@ -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() {
Expand All @@ -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) {
Expand All @@ -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) {
Expand All @@ -283,7 +283,7 @@ describe("ReactFireMixin Tests:", function() {
}
});

React.renderComponent(new TestComponent(), document.body);
React.render(new TestComponent(), document.body);
});
});

Expand All @@ -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() {
Expand All @@ -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() {
Expand All @@ -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() {
Expand All @@ -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) {
Expand All @@ -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) {
Expand All @@ -431,7 +431,7 @@ describe("ReactFireMixin Tests:", function() {
}
});

React.renderComponent(new TestComponent(), document.body);
React.render(new TestComponent(), document.body);
});
});

Expand Down Expand Up @@ -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() {
Expand All @@ -479,7 +479,7 @@ describe("ReactFireMixin Tests:", function() {
}
});

React.renderComponent(new TestComponent(), document.body);
React.render(new TestComponent(), document.body);
});
});
});

0 comments on commit cad4742

Please sign in to comment.