You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Route Component.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
## Route Components
1
+
## Route Component
2
2
3
3
A route's component is rendered when that route matches the URL. The router will inject the following properties into your component when it's rendered:
4
4
@@ -38,7 +38,7 @@ React.render((
38
38
</Router>
39
39
), node);
40
40
41
-
var App =React.createClass({
41
+
let App =React.createClass({
42
42
render() {
43
43
return (
44
44
<div>
@@ -50,15 +50,15 @@ var App = React.createClass({
50
50
});
51
51
```
52
52
53
-
### Named Child Components
53
+
### Named Components
54
54
55
-
When a route has multiple components, the child elements are available by name on `this.props`. All route components can participate in the nesting.
55
+
When a route has multiple components, the child elements are available by name on `this.props.children`. All route components can participate in the nesting.
0 commit comments