{"action":"created","issue":{"url":"https://api.github.com/repos/mxstbr/react-boilerplate/issues/88","labels_url":"https://api.github.com/repos/mxstbr/react-boilerplate/issues/88/labels{/name}","comments_url":"https://api.github.com/repos/mxstbr/react-boilerplate/issues/88/comments","events_url":"https://api.github.com/repos/mxstbr/react-boilerplate/issues/88/events","html_url":"https://github.com/mxstbr/react-boilerplate/pull/88","id":126670053,"number":88,"title":"redux-simple-router","user":{"login":"chungchiehlun","id":6926451,"avatar_url":"https://avatars.githubusercontent.com/u/6926451?v=3","gravatar_id":"","url":"https://api.github.com/users/chungchiehlun","html_url":"https://github.com/chungchiehlun","followers_url":"https://api.github.com/users/chungchiehlun/followers","following_url":"https://api.github.com/users/chungchiehlun/following{/other_user}","gists_url":"https://api.github.com/users/chungchiehlun/gists{/gist_id}","starred_url":"https://api.github.com/users/chungchiehlun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chungchiehlun/subscriptions","organizations_url":"https://api.github.com/users/chungchiehlun/orgs","repos_url":"https://api.github.com/users/chungchiehlun/repos","events_url":"https://api.github.com/users/chungchiehlun/events{/privacy}","received_events_url":"https://api.github.com/users/chungchiehlun/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-14T14:56:35Z","updated_at":"2016-01-16T16:48:06Z","closed_at":"2016-01-14T15:11:42Z","pull_request":{"url":"https://api.github.com/repos/mxstbr/react-boilerplate/pulls/88","html_url":"https://github.com/mxstbr/react-boilerplate/pull/88","diff_url":"https://github.com/mxstbr/react-boilerplate/pull/88.diff","patch_url":"https://github.com/mxstbr/react-boilerplate/pull/88.patch"},"body":"The official [redux-simple-router](https://github.com/rackt/redux-simple-router) just released v2.0 and updated its API. I tried to combined it with the repository and it worked well.\r\n\r\nI implement its powerful effect : Let `react-router` and `redux` do what they did as usual but keep both in sync. Accordingly , we combined two individual state , our application and **URL**. [This article](http://jlongster.com/A-Simple-Way-to-Route-with-Redux) illustrate the conecpt much clearly.\r\n\r\nWithout `redux-simple-router` , we used `<Link>` component provided by `react-router` to change URL. For example , `<Link className=\"btn\" to=\"/readme\">Setup</Link>`.\r\n\r\nNow , **our application state is contained the URL**. We re-rendered our UI after updating our state by dispatching actions as usual.\r\n\r\n```js\r\n<button className=\"btn\" onClick={ ()=> dispatch(routeActions.push('/readme' )) }>Setup</button>\r\n```"},"comment":{"url":"https://api.github.com/repos/mxstbr/react-boilerplate/issues/comments/172226212","html_url":"https://github.com/mxstbr/react-boilerplate/pull/88#issuecomment-172226212","issue_url":"https://api.github.com/repos/mxstbr/react-boilerplate/issues/88","id":172226212,"user":{"login":"mxstbr","id":7525670,"avatar_url":"https://avatars.githubusercontent.com/u/7525670?v=3","gravatar_id":"","url":"https://api.github.com/users/mxstbr","html_url":"https://github.com/mxstbr","followers_url":"https://api.github.com/users/mxstbr/followers","following_url":"https://api.github.com/users/mxstbr/following{/other_user}","gists_url":"https://api.github.com/users/mxstbr/gists{/gist_id}","starred_url":"https://api.github.com/users/mxstbr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mxstbr/subscriptions","organizations_url":"https://api.github.com/users/mxstbr/orgs","repos_url":"https://api.github.com/users/mxstbr/repos","events_url":"https://api.github.com/users/mxstbr/events{/privacy}","received_events_url":"https://api.github.com/users/mxstbr/received_events","type":"User","site_admin":false},"created_at":"2016-01-16T16:48:06Z","updated_at":"2016-01-16T16:48:06Z","body":"@chungchiehlun is there an update on this, are you working on it, do you need any help?"}}