mirror of
https://github.com/zhigang1992/reactfire.git
synced 2026-04-23 20:10:56 +08:00
Replaced deprecated renderComponent() with render()
This commit is contained in:
@@ -104,13 +104,10 @@
|
||||
}
|
||||
});
|
||||
|
||||
React.renderComponent(
|
||||
React.render(
|
||||
<CommentBox />,
|
||||
document.getElementById('content')
|
||||
);
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -60,4 +60,4 @@ var TodoApp2 = React.createClass({
|
||||
}
|
||||
});
|
||||
|
||||
React.renderComponent(<TodoApp2 />, document.getElementById("todoApp2"));
|
||||
React.render(<TodoApp2 />, document.getElementById("todoApp2"));
|
||||
|
||||
@@ -47,4 +47,4 @@ var TodoApp3 = React.createClass({
|
||||
}
|
||||
});
|
||||
|
||||
React.renderComponent(<TodoApp3 />, document.getElementById("todoApp3"));
|
||||
React.render(<TodoApp3 />, document.getElementById("todoApp3"));
|
||||
|
||||
@@ -43,4 +43,4 @@ var TodoApp1 = React.createClass({
|
||||
}
|
||||
});
|
||||
|
||||
React.renderComponent(<TodoApp1 />, document.getElementById("todoApp1"));
|
||||
React.render(<TodoApp1 />, document.getElementById("todoApp1"));
|
||||
|
||||
Reference in New Issue
Block a user