@@ -86,7 +86,7 @@ var App = React.createClass({
8686 < li>< Link to= " users" > Users< / Link>< / li>
8787 < li>< Link to= " user" userId= " 123" > User 123 < / Link>< / li>
8888 < / ul>
89- < this .props .activeRoute / >
89+ < this .props .activeRouteHandler / >
9090 < / div>
9191 );
9292 }
@@ -103,7 +103,7 @@ var Users = React.createClass({
103103 return (
104104 < div>
105105 < h2> Users< / h2>
106- < this .props .activeRoute / >
106+ < this .props .activeRouteHandler / >
107107 < / div>
108108 );
109109 }
@@ -116,16 +116,16 @@ var User = React.createClass({
116116});
117117```
118118
119- To better understand what is happening with ` activeRoute ` perhaps an
119+ To better understand what is happening with ` activeRouteHandler ` perhaps an
120120example without the router will help. Lets take the scenario where
121121` /users/2 ` has been matched. Your render method, without this router,
122122might look something like this:
123123
124124``` js
125125render : function () {
126126 var user = < User params= {{userId: 2 }}/ > ;
127- var users = < User activeRoute = {user}/ > ;
128- return < App activeRoute = {users}/ > ;
127+ var users = < User activeRouteHandler = {user}/ > ;
128+ return < App activeRouteHandler = {users}/ > ;
129129}
130130```
131131
@@ -190,7 +190,7 @@ routes do not inherit the path of their parent.
190190
191191Routes can be nested. When a child route matches, the parent route's
192192handler will have an instance of the child route's handler available as
193- ` this.props.activeRoute () ` . You can then render it in the parent
193+ ` this.props.activeRouteHandler () ` . You can then render it in the parent
194194passing in any additional props as needed.
195195
196196#### Examples
@@ -225,7 +225,7 @@ props and static methods available to these components.
225225
226226#### Props
227227
228- ** this.props.activeRoute (extraProps)** - The active child route handler.
228+ ** this.props.activeRouteHandler (extraProps)** - The active child route handler.
229229Use it in your render method to render the child route, passing in
230230additional properties as needed.
231231
0 commit comments