{"action":"closed","number":1,"pull_request":{"url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/pulls/1","id":66668311,"html_url":"https://github.com/ksespinola/react-redux-calculator-answer/pull/1","diff_url":"https://github.com/ksespinola/react-redux-calculator-answer/pull/1.diff","patch_url":"https://github.com/ksespinola/react-redux-calculator-answer/pull/1.patch","issue_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/issues/1","number":1,"state":"closed","locked":false,"title":"Chapter 1: Creating and Linking A Store to React","user":{"login":"ksespinola","id":2388118,"avatar_url":"https://avatars.githubusercontent.com/u/2388118?v=3","gravatar_id":"","url":"https://api.github.com/users/ksespinola","html_url":"https://github.com/ksespinola","followers_url":"https://api.github.com/users/ksespinola/followers","following_url":"https://api.github.com/users/ksespinola/following{/other_user}","gists_url":"https://api.github.com/users/ksespinola/gists{/gist_id}","starred_url":"https://api.github.com/users/ksespinola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksespinola/subscriptions","organizations_url":"https://api.github.com/users/ksespinola/orgs","repos_url":"https://api.github.com/users/ksespinola/repos","events_url":"https://api.github.com/users/ksespinola/events{/privacy}","received_events_url":"https://api.github.com/users/ksespinola/received_events","type":"User","site_admin":false},"body":"### What is a store?\r\nA store holds your state and provides an API for updating/reading the state of your app at any point in time.\r\n\r\nIts API is { subscribe, dispatch, getState }\r\n\r\n### How does the store manage the application state?\r\nThe store uses the reducer and current action to determine the next state of your app. The reducer is the instructions and the action is the request.\r\n\r\n### How do I create a store?\r\n`redux` ships with a constructor function called `createStore(initialState, reducer, enhancer)`\r\n\r\n### How do I connect my store to my react app?\r\n`react-redux` library providers a HOC and component for linking your store to your app.\r\n\r\n`<Provider />` holds your state in react context. \r\n`connect(mapState, mapProps)(Component)` creates gateway for interact the store held in context.","created_at":"2016-04-15T16:18:40Z","updated_at":"2016-04-15T16:28:46Z","closed_at":"2016-04-15T16:28:46Z","merged_at":"2016-04-15T16:28:46Z","merge_commit_sha":"e5f20fa492303413bbdd6d1d1335e1321c536c44","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/pulls/1/commits","review_comments_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/pulls/1/comments","review_comment_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/issues/1/comments","statuses_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/statuses/4072d0fce3674b5250a728fe6adae68a2e8a602e","head":{"label":"ksespinola:create-store","ref":"create-store","sha":"4072d0fce3674b5250a728fe6adae68a2e8a602e","user":{"login":"ksespinola","id":2388118,"avatar_url":"https://avatars.githubusercontent.com/u/2388118?v=3","gravatar_id":"","url":"https://api.github.com/users/ksespinola","html_url":"https://github.com/ksespinola","followers_url":"https://api.github.com/users/ksespinola/followers","following_url":"https://api.github.com/users/ksespinola/following{/other_user}","gists_url":"https://api.github.com/users/ksespinola/gists{/gist_id}","starred_url":"https://api.github.com/users/ksespinola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksespinola/subscriptions","organizations_url":"https://api.github.com/users/ksespinola/orgs","repos_url":"https://api.github.com/users/ksespinola/repos","events_url":"https://api.github.com/users/ksespinola/events{/privacy}","received_events_url":"https://api.github.com/users/ksespinola/received_events","type":"User","site_admin":false},"repo":{"id":56332869,"name":"react-redux-calculator-answer","full_name":"ksespinola/react-redux-calculator-answer","owner":{"login":"ksespinola","id":2388118,"avatar_url":"https://avatars.githubusercontent.com/u/2388118?v=3","gravatar_id":"","url":"https://api.github.com/users/ksespinola","html_url":"https://github.com/ksespinola","followers_url":"https://api.github.com/users/ksespinola/followers","following_url":"https://api.github.com/users/ksespinola/following{/other_user}","gists_url":"https://api.github.com/users/ksespinola/gists{/gist_id}","starred_url":"https://api.github.com/users/ksespinola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksespinola/subscriptions","organizations_url":"https://api.github.com/users/ksespinola/orgs","repos_url":"https://api.github.com/users/ksespinola/repos","events_url":"https://api.github.com/users/ksespinola/events{/privacy}","received_events_url":"https://api.github.com/users/ksespinola/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ksespinola/react-redux-calculator-answer","description":"","fork":false,"url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer","forks_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/forks","keys_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/teams","hooks_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/hooks","issue_events_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/issues/events{/number}","events_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/events","assignees_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/assignees{/user}","branches_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/branches{/branch}","tags_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/tags","blobs_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/git/refs{/sha}","trees_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/statuses/{sha}","languages_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/languages","stargazers_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/stargazers","contributors_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/contributors","subscribers_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/subscribers","subscription_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/subscription","commits_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/commits{/sha}","git_commits_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/git/commits{/sha}","comments_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/comments{/number}","issue_comment_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/issues/comments{/number}","contents_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/contents/{+path}","compare_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/merges","archive_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/downloads","issues_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/issues{/number}","pulls_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/pulls{/number}","milestones_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/milestones{/number}","notifications_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/labels{/name}","releases_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/releases{/id}","deployments_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/deployments","created_at":"2016-04-15T16:05:28Z","updated_at":"2016-04-15T16:06:10Z","pushed_at":"2016-04-15T16:28:46Z","git_url":"git://github.com/ksespinola/react-redux-calculator-answer.git","ssh_url":"git@github.com:ksespinola/react-redux-calculator-answer.git","clone_url":"https://github.com/ksespinola/react-redux-calculator-answer.git","svn_url":"https://github.com/ksespinola/react-redux-calculator-answer","homepage":null,"size":36,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ksespinola:master","ref":"master","sha":"fbb06e6524febcd2bbba5637f11556f83c29630c","user":{"login":"ksespinola","id":2388118,"avatar_url":"https://avatars.githubusercontent.com/u/2388118?v=3","gravatar_id":"","url":"https://api.github.com/users/ksespinola","html_url":"https://github.com/ksespinola","followers_url":"https://api.github.com/users/ksespinola/followers","following_url":"https://api.github.com/users/ksespinola/following{/other_user}","gists_url":"https://api.github.com/users/ksespinola/gists{/gist_id}","starred_url":"https://api.github.com/users/ksespinola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksespinola/subscriptions","organizations_url":"https://api.github.com/users/ksespinola/orgs","repos_url":"https://api.github.com/users/ksespinola/repos","events_url":"https://api.github.com/users/ksespinola/events{/privacy}","received_events_url":"https://api.github.com/users/ksespinola/received_events","type":"User","site_admin":false},"repo":{"id":56332869,"name":"react-redux-calculator-answer","full_name":"ksespinola/react-redux-calculator-answer","owner":{"login":"ksespinola","id":2388118,"avatar_url":"https://avatars.githubusercontent.com/u/2388118?v=3","gravatar_id":"","url":"https://api.github.com/users/ksespinola","html_url":"https://github.com/ksespinola","followers_url":"https://api.github.com/users/ksespinola/followers","following_url":"https://api.github.com/users/ksespinola/following{/other_user}","gists_url":"https://api.github.com/users/ksespinola/gists{/gist_id}","starred_url":"https://api.github.com/users/ksespinola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksespinola/subscriptions","organizations_url":"https://api.github.com/users/ksespinola/orgs","repos_url":"https://api.github.com/users/ksespinola/repos","events_url":"https://api.github.com/users/ksespinola/events{/privacy}","received_events_url":"https://api.github.com/users/ksespinola/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ksespinola/react-redux-calculator-answer","description":"","fork":false,"url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer","forks_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/forks","keys_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/teams","hooks_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/hooks","issue_events_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/issues/events{/number}","events_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/events","assignees_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/assignees{/user}","branches_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/branches{/branch}","tags_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/tags","blobs_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/git/refs{/sha}","trees_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/statuses/{sha}","languages_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/languages","stargazers_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/stargazers","contributors_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/contributors","subscribers_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/subscribers","subscription_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/subscription","commits_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/commits{/sha}","git_commits_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/git/commits{/sha}","comments_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/comments{/number}","issue_comment_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/issues/comments{/number}","contents_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/contents/{+path}","compare_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/merges","archive_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/downloads","issues_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/issues{/number}","pulls_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/pulls{/number}","milestones_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/milestones{/number}","notifications_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/labels{/name}","releases_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/releases{/id}","deployments_url":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/deployments","created_at":"2016-04-15T16:05:28Z","updated_at":"2016-04-15T16:06:10Z","pushed_at":"2016-04-15T16:28:46Z","git_url":"git://github.com/ksespinola/react-redux-calculator-answer.git","ssh_url":"git@github.com:ksespinola/react-redux-calculator-answer.git","clone_url":"https://github.com/ksespinola/react-redux-calculator-answer.git","svn_url":"https://github.com/ksespinola/react-redux-calculator-answer","homepage":null,"size":36,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/pulls/1"},"html":{"href":"https://github.com/ksespinola/react-redux-calculator-answer/pull/1"},"issue":{"href":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/issues/1"},"comments":{"href":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/ksespinola/react-redux-calculator-answer/statuses/4072d0fce3674b5250a728fe6adae68a2e8a602e"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"ksespinola","id":2388118,"avatar_url":"https://avatars.githubusercontent.com/u/2388118?v=3","gravatar_id":"","url":"https://api.github.com/users/ksespinola","html_url":"https://github.com/ksespinola","followers_url":"https://api.github.com/users/ksespinola/followers","following_url":"https://api.github.com/users/ksespinola/following{/other_user}","gists_url":"https://api.github.com/users/ksespinola/gists{/gist_id}","starred_url":"https://api.github.com/users/ksespinola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ksespinola/subscriptions","organizations_url":"https://api.github.com/users/ksespinola/orgs","repos_url":"https://api.github.com/users/ksespinola/repos","events_url":"https://api.github.com/users/ksespinola/events{/privacy}","received_events_url":"https://api.github.com/users/ksespinola/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":3,"additions":52,"deletions":3,"changed_files":3}}