Skip to content

Commit 61d35a9

Browse files
committed
overview updates
1 parent c739fe5 commit 61d35a9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/guides/overview.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,15 @@ var CalendarRoute = React.createClass({
8989

9090
// Not React Router API
9191
otherRouter.route('/', function () {
92-
React.renderComponent(<DashboardRoute/>, document.body);
92+
React.render(<DashboardRoute/>, document.body);
9393
});
9494

9595
otherRouter.route('/inbox', function () {
96-
React.renderComponent(<InboxRoute/>, document.body);
96+
React.render(<InboxRoute/>, document.body);
9797
});
9898

9999
otherRouter.route('/calendar', function () {
100-
React.renderComponent(<CalendarRoute/>, document.body);
100+
React.render(<CalendarRoute/>, document.body);
101101
});
102102
```
103103

@@ -172,8 +172,8 @@ var routes = (
172172
</Route>
173173
);
174174

175-
Router.run(routes, function(Handler) {
176-
React.renderComponent(<Handler/>, document.body);
175+
Router.run(routes, function (Handler) {
176+
React.render(<Handler/>, document.body);
177177
});
178178

179179
```
@@ -308,9 +308,9 @@ hierarchy from the `run` callback and access the params with
308308
`this.props.params`.
309309

310310
```js
311-
Router.run(routes, function(Handler, state) {
311+
Router.run(routes, function (Handler, state) {
312312
var params = state.params;
313-
React.renderComponent(<Handler params={params}/>, document.body);
313+
React.render(<Handler params={params}/>, document.body);
314314
});
315315

316316
// and then pass the params down to every use of `<RouteHandler/>`

0 commit comments

Comments
 (0)