{"action":"closed","issue":{"url":"https://api.github.com/repos/reactjs/react-router/issues/3399","repository_url":"https://api.github.com/repos/reactjs/react-router","labels_url":"https://api.github.com/repos/reactjs/react-router/issues/3399/labels{/name}","comments_url":"https://api.github.com/repos/reactjs/react-router/issues/3399/comments","events_url":"https://api.github.com/repos/reactjs/react-router/issues/3399/events","html_url":"https://github.com/reactjs/react-router/issues/3399","id":151536033,"number":3399,"title":"How to get object 'router' in react-router@2.3.0","user":{"login":"hhhyaaon","id":17123400,"avatar_url":"https://avatars.githubusercontent.com/u/17123400?v=3","gravatar_id":"","url":"https://api.github.com/users/hhhyaaon","html_url":"https://github.com/hhhyaaon","followers_url":"https://api.github.com/users/hhhyaaon/followers","following_url":"https://api.github.com/users/hhhyaaon/following{/other_user}","gists_url":"https://api.github.com/users/hhhyaaon/gists{/gist_id}","starred_url":"https://api.github.com/users/hhhyaaon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhhyaaon/subscriptions","organizations_url":"https://api.github.com/users/hhhyaaon/orgs","repos_url":"https://api.github.com/users/hhhyaaon/repos","events_url":"https://api.github.com/users/hhhyaaon/events{/privacy}","received_events_url":"https://api.github.com/users/hhhyaaon/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-28T02:37:28Z","updated_at":"2016-04-28T02:54:23Z","closed_at":"2016-04-28T02:54:23Z","body":"##Question\r\nAs the v2.0.0 upgrade guide shows, I can use a `router` to navigate instead of `history` \r\n![image](https://cloud.githubusercontent.com/assets/17123400/14873786/7e80fa58-0d2c-11e6-84ed-7f979a70f32b.png)\r\n\r\nHowever, how can I get the object `router`?\r\nI try to get the `router` by `<RouterContext>` or `withRouter`(v2.4.0), but they aren't work.\r\n\r\n\r\n![image](https://cloud.githubusercontent.com/assets/17123400/14873828/f4070358-0d2c-11e6-9a41-86f79ffd370c.png)\r\n\r\nHow can I solve the problem?\r\nThx\r\n\r\n## Version\r\n2.3.0\r\n\r\n\r\n"}}