{"action":"created","comment":{"url":"https://api.github.com/repos/AirbnBusy/sam-booking/pulls/comments/193508548","pull_request_review_id":126493729,"id":193508548,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MzUwODU0OA==","diff_hunk":"@@ -1,10 +1,40 @@\n import React from 'react';\n+import axios from 'axios';\n \n-const App = () => (\n-  <div>\n-    Hello from React!\n-  </div>\n-);\n+class App extends React.Component {\n+  constructor(props) {\n+    super(props);\n+\n+    this.state = {\n+      listingId: 1001,\n+    };\n+  }\n+\n+  componentDidMount() {\n+    this.getListing();\n+  }\n+\n+  getListing() {\n+    axios.get(`http://localhost:3001/api/listings/${this.state.listingId}`)\n+      .then((res) => {\n+        const { data } = res;\n+        this.setState({\n+          listingId: data.listingId,","path":"client/src/components/App.jsx","position":27,"original_position":27,"commit_id":"23c7c9b451d91a9f5f00b520da73c4bc111058a6","original_commit_id":"23c7c9b451d91a9f5f00b520da73c4bc111058a6","user":{"login":"georgina108","id":30646006,"node_id":"MDQ6VXNlcjMwNjQ2MDA2","avatar_url":"https://avatars0.githubusercontent.com/u/30646006?v=4","gravatar_id":"","url":"https://api.github.com/users/georgina108","html_url":"https://github.com/georgina108","followers_url":"https://api.github.com/users/georgina108/followers","following_url":"https://api.github.com/users/georgina108/following{/other_user}","gists_url":"https://api.github.com/users/georgina108/gists{/gist_id}","starred_url":"https://api.github.com/users/georgina108/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georgina108/subscriptions","organizations_url":"https://api.github.com/users/georgina108/orgs","repos_url":"https://api.github.com/users/georgina108/repos","events_url":"https://api.github.com/users/georgina108/events{/privacy}","received_events_url":"https://api.github.com/users/georgina108/received_events","type":"User","site_admin":false},"body":"I think the comma after 'listingId: data.lisingId' might produce an error","created_at":"2018-06-06T18:12:05Z","updated_at":"2018-06-06T18:12:06Z","html_url":"https://github.com/AirbnBusy/sam-booking/pull/8#discussion_r193508548","pull_request_url":"https://api.github.com/repos/AirbnBusy/sam-booking/pulls/8","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/AirbnBusy/sam-booking/pulls/comments/193508548"},"html":{"href":"https://github.com/AirbnBusy/sam-booking/pull/8#discussion_r193508548"},"pull_request":{"href":"https://api.github.com/repos/AirbnBusy/sam-booking/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/AirbnBusy/sam-booking/pulls/8","id":192863148,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyODYzMTQ4","html_url":"https://github.com/AirbnBusy/sam-booking/pull/8","diff_url":"https://github.com/AirbnBusy/sam-booking/pull/8.diff","patch_url":"https://github.com/AirbnBusy/sam-booking/pull/8.patch","issue_url":"https://api.github.com/repos/AirbnBusy/sam-booking/issues/8","number":8,"state":"open","locked":false,"title":"Basic Setup of Client-Server Relationship","user":{"login":"sirowland","id":9065104,"node_id":"MDQ6VXNlcjkwNjUxMDQ=","avatar_url":"https://avatars0.githubusercontent.com/u/9065104?v=4","gravatar_id":"","url":"https://api.github.com/users/sirowland","html_url":"https://github.com/sirowland","followers_url":"https://api.github.com/users/sirowland/followers","following_url":"https://api.github.com/users/sirowland/following{/other_user}","gists_url":"https://api.github.com/users/sirowland/gists{/gist_id}","starred_url":"https://api.github.com/users/sirowland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sirowland/subscriptions","organizations_url":"https://api.github.com/users/sirowland/orgs","repos_url":"https://api.github.com/users/sirowland/repos","events_url":"https://api.github.com/users/sirowland/events{/privacy}","received_events_url":"https://api.github.com/users/sirowland/received_events","type":"User","site_admin":false},"body":"Disregard the (App.jsx) extensions, I have fixed them in a later version so webpack recognizes without the extension","created_at":"2018-06-05T23:28:42Z","updated_at":"2018-06-06T18:12:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e8fd4387d2a8e0fc4a6ae159a33dc831c13d99d7","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/AirbnBusy/sam-booking/pulls/8/commits","review_comments_url":"https://api.github.com/repos/AirbnBusy/sam-booking/pulls/8/comments","review_comment_url":"https://api.github.com/repos/AirbnBusy/sam-booking/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AirbnBusy/sam-booking/issues/8/comments","statuses_url":"https://api.github.com/repos/AirbnBusy/sam-booking/statuses/23c7c9b451d91a9f5f00b520da73c4bc111058a6","head":{"label":"AirbnBusy:server","ref":"server","sha":"23c7c9b451d91a9f5f00b520da73c4bc111058a6","user":{"login":"AirbnBusy","id":39781466,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5NzgxNDY2","avatar_url":"https://avatars0.githubusercontent.com/u/39781466?v=4","gravatar_id":"","url":"https://api.github.com/users/AirbnBusy","html_url":"https://github.com/AirbnBusy","followers_url":"https://api.github.com/users/AirbnBusy/followers","following_url":"https://api.github.com/users/AirbnBusy/following{/other_user}","gists_url":"https://api.github.com/users/AirbnBusy/gists{/gist_id}","starred_url":"https://api.github.com/users/AirbnBusy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AirbnBusy/subscriptions","organizations_url":"https://api.github.com/users/AirbnBusy/orgs","repos_url":"https://api.github.com/users/AirbnBusy/repos","events_url":"https://api.github.com/users/AirbnBusy/events{/privacy}","received_events_url":"https://api.github.com/users/AirbnBusy/received_events","type":"Organization","site_admin":false},"repo":{"id":135506824,"node_id":"MDEwOlJlcG9zaXRvcnkxMzU1MDY4MjQ=","name":"sam-booking","full_name":"AirbnBusy/sam-booking","owner":{"login":"AirbnBusy","id":39781466,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5NzgxNDY2","avatar_url":"https://avatars0.githubusercontent.com/u/39781466?v=4","gravatar_id":"","url":"https://api.github.com/users/AirbnBusy","html_url":"https://github.com/AirbnBusy","followers_url":"https://api.github.com/users/AirbnBusy/followers","following_url":"https://api.github.com/users/AirbnBusy/following{/other_user}","gists_url":"https://api.github.com/users/AirbnBusy/gists{/gist_id}","starred_url":"https://api.github.com/users/AirbnBusy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AirbnBusy/subscriptions","organizations_url":"https://api.github.com/users/AirbnBusy/orgs","repos_url":"https://api.github.com/users/AirbnBusy/repos","events_url":"https://api.github.com/users/AirbnBusy/events{/privacy}","received_events_url":"https://api.github.com/users/AirbnBusy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AirbnBusy/sam-booking","description":null,"fork":false,"url":"https://api.github.com/repos/AirbnBusy/sam-booking","forks_url":"https://api.github.com/repos/AirbnBusy/sam-booking/forks","keys_url":"https://api.github.com/repos/AirbnBusy/sam-booking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AirbnBusy/sam-booking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AirbnBusy/sam-booking/teams","hooks_url":"https://api.github.com/repos/AirbnBusy/sam-booking/hooks","issue_events_url":"https://api.github.com/repos/AirbnBusy/sam-booking/issues/events{/number}","events_url":"https://api.github.com/repos/AirbnBusy/sam-booking/events","assignees_url":"https://api.github.com/repos/AirbnBusy/sam-booking/assignees{/user}","branches_url":"https://api.github.com/repos/AirbnBusy/sam-booking/branches{/branch}","tags_url":"https://api.github.com/repos/AirbnBusy/sam-booking/tags","blobs_url":"https://api.github.com/repos/AirbnBusy/sam-booking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AirbnBusy/sam-booking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AirbnBusy/sam-booking/git/refs{/sha}","trees_url":"https://api.github.com/repos/AirbnBusy/sam-booking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AirbnBusy/sam-booking/statuses/{sha}","languages_url":"https://api.github.com/repos/AirbnBusy/sam-booking/languages","stargazers_url":"https://api.github.com/repos/AirbnBusy/sam-booking/stargazers","contributors_url":"https://api.github.com/repos/AirbnBusy/sam-booking/contributors","subscribers_url":"https://api.github.com/repos/AirbnBusy/sam-booking/subscribers","subscription_url":"https://api.github.com/repos/AirbnBusy/sam-booking/subscription","commits_url":"https://api.github.com/repos/AirbnBusy/sam-booking/commits{/sha}","git_commits_url":"https://api.github.com/repos/AirbnBusy/sam-booking/git/commits{/sha}","comments_url":"https://api.github.com/repos/AirbnBusy/sam-booking/comments{/number}","issue_comment_url":"https://api.github.com/repos/AirbnBusy/sam-booking/issues/comments{/number}","contents_url":"https://api.github.com/repos/AirbnBusy/sam-booking/contents/{+path}","compare_url":"https://api.github.com/repos/AirbnBusy/sam-booking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AirbnBusy/sam-booking/merges","archive_url":"https://api.github.com/repos/AirbnBusy/sam-booking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AirbnBusy/sam-booking/downloads","issues_url":"https://api.github.com/repos/AirbnBusy/sam-booking/issues{/number}","pulls_url":"https://api.github.com/repos/AirbnBusy/sam-booking/pulls{/number}","milestones_url":"https://api.github.com/repos/AirbnBusy/sam-booking/milestones{/number}","notifications_url":"https://api.github.com/repos/AirbnBusy/sam-booking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AirbnBusy/sam-booking/labels{/name}","releases_url":"https://api.github.com/repos/AirbnBusy/sam-booking/releases{/id}","deployments_url":"https://api.github.com/repos/AirbnBusy/sam-booking/deployments","created_at":"2018-05-30T23:16:22Z","updated_at":"2018-06-06T16:37:59Z","pushed_at":"2018-06-06T16:47:34Z","git_url":"git://github.com/AirbnBusy/sam-booking.git","ssh_url":"git@github.com:AirbnBusy/sam-booking.git","clone_url":"https://github.com/AirbnBusy/sam-booking.git","svn_url":"https://github.com/AirbnBusy/sam-booking","homepage":null,"size":994,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"AirbnBusy:master","ref":"master","sha":"cc079d834ec4230949a4999b92890a20a2e33e6f","user":{"login":"AirbnBusy","id":39781466,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5NzgxNDY2","avatar_url":"https://avatars0.githubusercontent.com/u/39781466?v=4","gravatar_id":"","url":"https://api.github.com/users/AirbnBusy","html_url":"https://github.com/AirbnBusy","followers_url":"https://api.github.com/users/AirbnBusy/followers","following_url":"https://api.github.com/users/AirbnBusy/following{/other_user}","gists_url":"https://api.github.com/users/AirbnBusy/gists{/gist_id}","starred_url":"https://api.github.com/users/AirbnBusy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AirbnBusy/subscriptions","organizations_url":"https://api.github.com/users/AirbnBusy/orgs","repos_url":"https://api.github.com/users/AirbnBusy/repos","events_url":"https://api.github.com/users/AirbnBusy/events{/privacy}","received_events_url":"https://api.github.com/users/AirbnBusy/received_events","type":"Organization","site_admin":false},"repo":{"id":135506824,"node_id":"MDEwOlJlcG9zaXRvcnkxMzU1MDY4MjQ=","name":"sam-booking","full_name":"AirbnBusy/sam-booking","owner":{"login":"AirbnBusy","id":39781466,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM5NzgxNDY2","avatar_url":"https://avatars0.githubusercontent.com/u/39781466?v=4","gravatar_id":"","url":"https://api.github.com/users/AirbnBusy","html_url":"https://github.com/AirbnBusy","followers_url":"https://api.github.com/users/AirbnBusy/followers","following_url":"https://api.github.com/users/AirbnBusy/following{/other_user}","gists_url":"https://api.github.com/users/AirbnBusy/gists{/gist_id}","starred_url":"https://api.github.com/users/AirbnBusy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AirbnBusy/subscriptions","organizations_url":"https://api.github.com/users/AirbnBusy/orgs","repos_url":"https://api.github.com/users/AirbnBusy/repos","events_url":"https://api.github.com/users/AirbnBusy/events{/privacy}","received_events_url":"https://api.github.com/users/AirbnBusy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AirbnBusy/sam-booking","description":null,"fork":false,"url":"https://api.github.com/repos/AirbnBusy/sam-booking","forks_url":"https://api.github.com/repos/AirbnBusy/sam-booking/forks","keys_url":"https://api.github.com/repos/AirbnBusy/sam-booking/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AirbnBusy/sam-booking/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AirbnBusy/sam-booking/teams","hooks_url":"https://api.github.com/repos/AirbnBusy/sam-booking/hooks","issue_events_url":"https://api.github.com/repos/AirbnBusy/sam-booking/issues/events{/number}","events_url":"https://api.github.com/repos/AirbnBusy/sam-booking/events","assignees_url":"https://api.github.com/repos/AirbnBusy/sam-booking/assignees{/user}","branches_url":"https://api.github.com/repos/AirbnBusy/sam-booking/branches{/branch}","tags_url":"https://api.github.com/repos/AirbnBusy/sam-booking/tags","blobs_url":"https://api.github.com/repos/AirbnBusy/sam-booking/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AirbnBusy/sam-booking/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AirbnBusy/sam-booking/git/refs{/sha}","trees_url":"https://api.github.com/repos/AirbnBusy/sam-booking/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AirbnBusy/sam-booking/statuses/{sha}","languages_url":"https://api.github.com/repos/AirbnBusy/sam-booking/languages","stargazers_url":"https://api.github.com/repos/AirbnBusy/sam-booking/stargazers","contributors_url":"https://api.github.com/repos/AirbnBusy/sam-booking/contributors","subscribers_url":"https://api.github.com/repos/AirbnBusy/sam-booking/subscribers","subscription_url":"https://api.github.com/repos/AirbnBusy/sam-booking/subscription","commits_url":"https://api.github.com/repos/AirbnBusy/sam-booking/commits{/sha}","git_commits_url":"https://api.github.com/repos/AirbnBusy/sam-booking/git/commits{/sha}","comments_url":"https://api.github.com/repos/AirbnBusy/sam-booking/comments{/number}","issue_comment_url":"https://api.github.com/repos/AirbnBusy/sam-booking/issues/comments{/number}","contents_url":"https://api.github.com/repos/AirbnBusy/sam-booking/contents/{+path}","compare_url":"https://api.github.com/repos/AirbnBusy/sam-booking/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AirbnBusy/sam-booking/merges","archive_url":"https://api.github.com/repos/AirbnBusy/sam-booking/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AirbnBusy/sam-booking/downloads","issues_url":"https://api.github.com/repos/AirbnBusy/sam-booking/issues{/number}","pulls_url":"https://api.github.com/repos/AirbnBusy/sam-booking/pulls{/number}","milestones_url":"https://api.github.com/repos/AirbnBusy/sam-booking/milestones{/number}","notifications_url":"https://api.github.com/repos/AirbnBusy/sam-booking/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AirbnBusy/sam-booking/labels{/name}","releases_url":"https://api.github.com/repos/AirbnBusy/sam-booking/releases{/id}","deployments_url":"https://api.github.com/repos/AirbnBusy/sam-booking/deployments","created_at":"2018-05-30T23:16:22Z","updated_at":"2018-06-06T16:37:59Z","pushed_at":"2018-06-06T16:47:34Z","git_url":"git://github.com/AirbnBusy/sam-booking.git","ssh_url":"git@github.com:AirbnBusy/sam-booking.git","clone_url":"https://github.com/AirbnBusy/sam-booking.git","svn_url":"https://github.com/AirbnBusy/sam-booking","homepage":null,"size":994,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AirbnBusy/sam-booking/pulls/8"},"html":{"href":"https://github.com/AirbnBusy/sam-booking/pull/8"},"issue":{"href":"https://api.github.com/repos/AirbnBusy/sam-booking/issues/8"},"comments":{"href":"https://api.github.com/repos/AirbnBusy/sam-booking/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/AirbnBusy/sam-booking/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/AirbnBusy/sam-booking/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AirbnBusy/sam-booking/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/AirbnBusy/sam-booking/statuses/23c7c9b451d91a9f5f00b520da73c4bc111058a6"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"georgina108"}}