{"action":"created","issue":{"url":"https://api.github.com/repos/rackt/react-router/issues/2013","labels_url":"https://api.github.com/repos/rackt/react-router/issues/2013/labels{/name}","comments_url":"https://api.github.com/repos/rackt/react-router/issues/2013/comments","events_url":"https://api.github.com/repos/rackt/react-router/issues/2013/events","html_url":"https://github.com/rackt/react-router/issues/2013","id":107307629,"number":2013,"title":"Need to colocate routes under the same parent in a single file outside of the parent.","user":{"login":"Tlvenn","id":3340262,"avatar_url":"https://avatars.githubusercontent.com/u/3340262?v=3","gravatar_id":"","url":"https://api.github.com/users/Tlvenn","html_url":"https://github.com/Tlvenn","followers_url":"https://api.github.com/users/Tlvenn/followers","following_url":"https://api.github.com/users/Tlvenn/following{/other_user}","gists_url":"https://api.github.com/users/Tlvenn/gists{/gist_id}","starred_url":"https://api.github.com/users/Tlvenn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tlvenn/subscriptions","organizations_url":"https://api.github.com/users/Tlvenn/orgs","repos_url":"https://api.github.com/users/Tlvenn/repos","events_url":"https://api.github.com/users/Tlvenn/events{/privacy}","received_events_url":"https://api.github.com/users/Tlvenn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-19T03:30:40Z","updated_at":"2015-09-19T03:53:17Z","closed_at":null,"body":"Hi,\r\n\r\nThe huge app examples sows how we can decouple our routes but each slicing bring up only one child into the parent. How can we bring up many childs at once from a given file ?\r\n\r\nExample:\r\n\r\n```\r\nconst rootRoute = {\r\n  path: '/',\r\n  component: require('./components/App.jsx'),\r\n  childRoutes: [\r\n    require('./features/user')\r\n  ]\r\n};\r\n```\r\n\r\nIn the above, I would like for the user module to be able to publish more than 1 route under the `App` parent. Right now the module export a single route. Could we return an array and then have React Router add each element to the childRoutes of the parent ?\r\n\r\nThanks !"},"comment":{"url":"https://api.github.com/repos/rackt/react-router/issues/comments/141617748","html_url":"https://github.com/rackt/react-router/issues/2013#issuecomment-141617748","issue_url":"https://api.github.com/repos/rackt/react-router/issues/2013","id":141617748,"user":{"login":"Tlvenn","id":3340262,"avatar_url":"https://avatars.githubusercontent.com/u/3340262?v=3","gravatar_id":"","url":"https://api.github.com/users/Tlvenn","html_url":"https://github.com/Tlvenn","followers_url":"https://api.github.com/users/Tlvenn/followers","following_url":"https://api.github.com/users/Tlvenn/following{/other_user}","gists_url":"https://api.github.com/users/Tlvenn/gists{/gist_id}","starred_url":"https://api.github.com/users/Tlvenn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tlvenn/subscriptions","organizations_url":"https://api.github.com/users/Tlvenn/orgs","repos_url":"https://api.github.com/users/Tlvenn/repos","events_url":"https://api.github.com/users/Tlvenn/events{/privacy}","received_events_url":"https://api.github.com/users/Tlvenn/received_events","type":"User","site_admin":false},"created_at":"2015-09-19T03:53:17Z","updated_at":"2015-09-19T03:53:17Z","body":"I should mention that the above can easily be implemented like that by the end user:\r\n\r\n```\r\nconst rootRoute = {\r\n  path: '/',\r\n  component: require('./components/App.jsx'),\r\n  childRoutes: _.flatten([\r\n    require('./features/user')\r\n  ])\r\n};\r\n```\r\n\r\nBut I somehow feels the Router should take care of that if possible."}}