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"));