File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -101,14 +101,14 @@ var Routes = React.createClass({
101
101
* object that contains the URL parameters relevant to that route. Returns
102
102
* null if no route in the tree matches the path.
103
103
*
104
- * ( <Routes handler={App}>
105
- * <Route name="posts" handler={Posts}>
106
- * <Route name="newPost" path="/posts/new" handler={NewPost}/>
107
- * <Route name="showPost" path="/posts/:id" handler={Post}/>
104
+ * React.renderComponent(
105
+ * <Routes>
106
+ * <Route handler={App}>
107
+ * <Route name="posts" handler={Posts}/>
108
+ * <Route name="post" path="/posts/:id" handler={Post}/>
108
109
* </Route>
109
110
* </Routes>
110
111
* ).match('/posts/123'); => [ { route: <AppRoute>, params: {} },
111
- * { route: <PostsRoute>, params: {} },
112
112
* { route: <PostRoute>, params: { id: '123' } } ]
113
113
*/
114
114
match : function ( path ) {
You can’t perform that action at this time.
0 commit comments