Skip to content

Commit 3aa29ff

Browse files
committed
Updated docs for <Routes>
1 parent d658500 commit 3aa29ff

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

modules/components/Routes.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,14 @@ var Routes = React.createClass({
101101
* object that contains the URL parameters relevant to that route. Returns
102102
* null if no route in the tree matches the path.
103103
*
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}/>
108109
* </Route>
109110
* </Routes>
110111
* ).match('/posts/123'); => [ { route: <AppRoute>, params: {} },
111-
* { route: <PostsRoute>, params: {} },
112112
* { route: <PostRoute>, params: { id: '123' } } ]
113113
*/
114114
match: function (path) {

0 commit comments

Comments
 (0)