{"action":"closed","issue":{"url":"https://api.github.com/repos/rackt/react-router/issues/2308","labels_url":"https://api.github.com/repos/rackt/react-router/issues/2308/labels{/name}","comments_url":"https://api.github.com/repos/rackt/react-router/issues/2308/comments","events_url":"https://api.github.com/repos/rackt/react-router/issues/2308/events","html_url":"https://github.com/rackt/react-router/issues/2308","id":112049815,"number":2308,"title":"Serverside Routing","user":{"login":"bsdo64","id":5698928,"avatar_url":"https://avatars.githubusercontent.com/u/5698928?v=3","gravatar_id":"","url":"https://api.github.com/users/bsdo64","html_url":"https://github.com/bsdo64","followers_url":"https://api.github.com/users/bsdo64/followers","following_url":"https://api.github.com/users/bsdo64/following{/other_user}","gists_url":"https://api.github.com/users/bsdo64/gists{/gist_id}","starred_url":"https://api.github.com/users/bsdo64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsdo64/subscriptions","organizations_url":"https://api.github.com/users/bsdo64/orgs","repos_url":"https://api.github.com/users/bsdo64/repos","events_url":"https://api.github.com/users/bsdo64/events{/privacy}","received_events_url":"https://api.github.com/users/bsdo64/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-18T23:19:33Z","updated_at":"2015-10-20T21:41:51Z","closed_at":"2015-10-20T21:41:51Z","body":"Hello\r\nThanks for using react-router every time, but I have some problem now.\r\n\r\nI'm following docs in [serverside-routing](https://github.com/rackt/react-router/blob/master/docs/guides/advanced/ServerRendering.md)\r\nWhen I matched routes to below react element, every url can't routes\r\nBut when I use plain object, it works well.\r\n\r\nHere is my code\r\n````javascript\r\napp.use(function (req, res) {\r\n    var reactRoutes = routes();\r\n    match({ reactRoutes, location: req.url }, (error, redirectLocation, renderProps) => {\r\n\r\n        if (error) {\r\n            res.send(500, error.message)\r\n        } else if (redirectLocation) {\r\n            res.redirect(302, redirectLocation.pathname + redirectLocation.search)\r\n        } else if (renderProps) {\r\n            res.send(200, renderToString(<RoutingContext {...renderProps} />))\r\n        } else {\r\n            res.send(404, 'Not found')\r\n        }\r\n    });\r\n\r\n});\r\n\r\n````\r\n\r\nDon't work :(\r\n````javascript\r\nvar routes = function () {\r\n\r\n    return  (\r\n        <Route component={App}>\r\n            <Route path=\"/\" components={{header: header, main: main, sidebar: sidebar}} />\r\n        </Route>\r\n    )\r\n}\r\n\r\nexport default routes;\r\n````\r\n\r\nWorks well :)\r\n````javascript\r\n    const routes = [{\r\n        path: '/',\r\n        component: App\r\n    }];\r\n````\r\n\r\nCould you help me how to use react element routes?"}}