@@ -60,8 +60,8 @@ React.renderComponent((
6060
6161When a ` Route ` is active, you'll get an instance of ` handler `
6262automatically rendered for you. When one of the child routes is active,
63- you can render it with ` this.props.activeRoute() ` in the parent all the
64- way down the view hierarchy. This allows you to create nested layouts
63+ the component will be available as ` this.props.activeRoute ` in the parent
64+ all the way down the view hierarchy. This allows you to create nested layouts
6565without having to wire it all up yourself. ` Link ` components create
6666accessible anchor tags to route you around the application.
6767
@@ -91,7 +91,7 @@ var App = React.createClass({
9191 < li>< Link to= " users" > Users< / Link>< / li>
9292 < li>< Link to= " user" userId= " 123" > User 123 < / Link>< / li>
9393 < / ul>
94- { this .props .activeRoute ()}
94+ < this .props .activeRoute / >
9595 < / div>
9696 );
9797 }
@@ -108,7 +108,7 @@ var Users = React.createClass({
108108 return (
109109 < div>
110110 < h2> Users< / h2>
111- { this .props .activeRoute ()}
111+ < this .props .activeRoute / >
112112 < / div>
113113 );
114114 }
@@ -179,8 +179,10 @@ routes do not inherit the path of their parent.
179179#### Children
180180
181181Routes can be nested. When a child route matches, the parent route's
182- handler will have an instance of the child route's handler available on
183- ` this.props.activeRoute() ` .
182+ handler will have an instance of the child route's handler available as
183+ ` this.props.activeRoute ` . You can then render it in the parent
184+ passing in any additional props as needed.
185+
184186#### Examples
185187
186188``` xml
@@ -213,9 +215,8 @@ props and static methods available to these components.
213215
214216#### Props
215217
216- ** this.props.activeRoute** - The active child route handler instance.
217- Use it in your render method to render the child route. You can pass
218- additional props to it for rendering.
218+ ** this.props.activeRoute** - The active child route handler.
219+ Use it in your render method to render the child route.
219220
220221** this.props.params** - When a route has dynamic segments like `<Route
221222path="users/: userId "/>` the dynamic values are available at
0 commit comments