{"action":"created","comment":{"url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/pulls/comments/237958524","pull_request_review_id":180392548,"id":237958524,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNzk1ODUyNA==","diff_hunk":"@@ -0,0 +1,115 @@\n+import React, { Component } from \"react\";\n+import { Route, NavLink } from \"react-router-dom\";\n+import axios from \"axios\";\n+import \"./App.css\";\n+import FriendsList from \"./components/FriendList\";\n+import Form from \"./components/Form\";\n+import Home from \"./components/Home\";\n+\n+class App extends Component {\n+  constructor() {\n+    super();\n+    this.state = {\n+      friends: []\n+    };\n+  }\n+\n+  componentDidMount() {\n+    axios\n+      .get(\"http://localhost:5000/friends\")\n+      .then(response => {\n+        console.log(response.data);\n+        this.setState({ friends: response.data });\n+      })\n+      .catch(err => {\n+        console.log(err);\n+      });\n+  }\n+\n+  addFriend = friend => {\n+    axios\n+      .post(\"http://localhost:5000/friends\", friend)\n+      .then(response => {\n+        console.log(response.data);\n+        this.setState({ friends: response.data });\n+      })\n+      .catch(err => {\n+        console.log(err);\n+      });\n+  };\n+\n+  deleteFriend = id => {\n+    axios\n+      .delete(`http://localhost:5000/friends/${id}`)\n+      .then(response => {\n+        console.log(response.data);\n+        this.setState({ friends: response.data });\n+      })\n+      .catch(err => {\n+        console.log(err);\n+      });","path":"friends/src/App.js","position":50,"original_position":50,"commit_id":"d24c3739140b5cfc48b966964bc563bdcd41af91","original_commit_id":"d24c3739140b5cfc48b966964bc563bdcd41af91","user":{"login":"johnoro","id":34101601,"node_id":"MDQ6VXNlcjM0MTAxNjAx","avatar_url":"https://avatars0.githubusercontent.com/u/34101601?v=4","gravatar_id":"","url":"https://api.github.com/users/johnoro","html_url":"https://github.com/johnoro","followers_url":"https://api.github.com/users/johnoro/followers","following_url":"https://api.github.com/users/johnoro/following{/other_user}","gists_url":"https://api.github.com/users/johnoro/gists{/gist_id}","starred_url":"https://api.github.com/users/johnoro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnoro/subscriptions","organizations_url":"https://api.github.com/users/johnoro/orgs","repos_url":"https://api.github.com/users/johnoro/repos","events_url":"https://api.github.com/users/johnoro/events{/privacy}","received_events_url":"https://api.github.com/users/johnoro/received_events","type":"User","site_admin":false},"body":"The same applies for destructuring and the callback; this applies to your other .then and .catch callbacks too!","created_at":"2018-11-30T18:32:37Z","updated_at":"2018-11-30T18:47:44Z","html_url":"https://github.com/LambdaSchool/HTTP-AJAX/pull/571#discussion_r237958524","pull_request_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/pulls/571","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/pulls/comments/237958524"},"html":{"href":"https://github.com/LambdaSchool/HTTP-AJAX/pull/571#discussion_r237958524"},"pull_request":{"href":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/pulls/571"}}},"pull_request":{"url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/pulls/571","id":234444547,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM0NDQ0NTQ3","html_url":"https://github.com/LambdaSchool/HTTP-AJAX/pull/571","diff_url":"https://github.com/LambdaSchool/HTTP-AJAX/pull/571.diff","patch_url":"https://github.com/LambdaSchool/HTTP-AJAX/pull/571.patch","issue_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/issues/571","number":571,"state":"open","locked":false,"title":"MVP Day One Complete - Up to Instruction 6","user":{"login":"gittc100","id":37307521,"node_id":"MDQ6VXNlcjM3MzA3NTIx","avatar_url":"https://avatars1.githubusercontent.com/u/37307521?v=4","gravatar_id":"","url":"https://api.github.com/users/gittc100","html_url":"https://github.com/gittc100","followers_url":"https://api.github.com/users/gittc100/followers","following_url":"https://api.github.com/users/gittc100/following{/other_user}","gists_url":"https://api.github.com/users/gittc100/gists{/gist_id}","starred_url":"https://api.github.com/users/gittc100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gittc100/subscriptions","organizations_url":"https://api.github.com/users/gittc100/orgs","repos_url":"https://api.github.com/users/gittc100/repos","events_url":"https://api.github.com/users/gittc100/events{/privacy}","received_events_url":"https://api.github.com/users/gittc100/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-28T22:23:54Z","updated_at":"2018-11-30T18:47:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"124a2d702408964a91303a00a5bdfced179ce6dd","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/pulls/571/commits","review_comments_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/pulls/571/comments","review_comment_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/issues/571/comments","statuses_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/statuses/d24c3739140b5cfc48b966964bc563bdcd41af91","head":{"label":"gittc100:master","ref":"master","sha":"d24c3739140b5cfc48b966964bc563bdcd41af91","user":{"login":"gittc100","id":37307521,"node_id":"MDQ6VXNlcjM3MzA3NTIx","avatar_url":"https://avatars1.githubusercontent.com/u/37307521?v=4","gravatar_id":"","url":"https://api.github.com/users/gittc100","html_url":"https://github.com/gittc100","followers_url":"https://api.github.com/users/gittc100/followers","following_url":"https://api.github.com/users/gittc100/following{/other_user}","gists_url":"https://api.github.com/users/gittc100/gists{/gist_id}","starred_url":"https://api.github.com/users/gittc100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gittc100/subscriptions","organizations_url":"https://api.github.com/users/gittc100/orgs","repos_url":"https://api.github.com/users/gittc100/repos","events_url":"https://api.github.com/users/gittc100/events{/privacy}","received_events_url":"https://api.github.com/users/gittc100/received_events","type":"User","site_admin":false},"repo":{"id":159559208,"node_id":"MDEwOlJlcG9zaXRvcnkxNTk1NTkyMDg=","name":"HTTP-AJAX","full_name":"gittc100/HTTP-AJAX","private":false,"owner":{"login":"gittc100","id":37307521,"node_id":"MDQ6VXNlcjM3MzA3NTIx","avatar_url":"https://avatars1.githubusercontent.com/u/37307521?v=4","gravatar_id":"","url":"https://api.github.com/users/gittc100","html_url":"https://github.com/gittc100","followers_url":"https://api.github.com/users/gittc100/followers","following_url":"https://api.github.com/users/gittc100/following{/other_user}","gists_url":"https://api.github.com/users/gittc100/gists{/gist_id}","starred_url":"https://api.github.com/users/gittc100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gittc100/subscriptions","organizations_url":"https://api.github.com/users/gittc100/orgs","repos_url":"https://api.github.com/users/gittc100/repos","events_url":"https://api.github.com/users/gittc100/events{/privacy}","received_events_url":"https://api.github.com/users/gittc100/received_events","type":"User","site_admin":false},"html_url":"https://github.com/gittc100/HTTP-AJAX","description":null,"fork":true,"url":"https://api.github.com/repos/gittc100/HTTP-AJAX","forks_url":"https://api.github.com/repos/gittc100/HTTP-AJAX/forks","keys_url":"https://api.github.com/repos/gittc100/HTTP-AJAX/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gittc100/HTTP-AJAX/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gittc100/HTTP-AJAX/teams","hooks_url":"https://api.github.com/repos/gittc100/HTTP-AJAX/hooks","issue_events_url":"https://api.github.com/repos/gittc100/HTTP-AJAX/issues/events{/number}","events_url":"https://api.github.com/repos/gittc100/HTTP-AJAX/events","assignees_url":"https://api.github.com/repos/gittc100/HTTP-AJAX/assignees{/user}","branches_url":"https://api.github.com/repos/gittc100/HTTP-AJAX/branches{/branch}","tags_url":"https://api.github.com/repos/gittc100/HTTP-AJAX/tags","blobs_url":"https://api.github.com/repos/gittc100/HTTP-AJAX/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gittc100/HTTP-AJAX/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gittc100/HTTP-AJAX/git/refs{/sha}","trees_url":"https://api.github.com/repos/gittc100/HTTP-AJAX/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gittc100/HTTP-AJAX/statuses/{sha}","languages_url":"https://api.github.com/repos/gittc100/HTTP-AJAX/languages","stargazers_url":"https://api.github.com/repos/gittc100/HTTP-AJAX/stargazers","contributors_url":"https://api.github.com/repos/gittc100/HTTP-AJAX/contributors","subscribers_url":"https://api.github.com/repos/gittc100/HTTP-AJAX/subscribers","subscription_url":"https://api.github.com/repos/gittc100/HTTP-AJAX/subscription","commits_url":"https://api.github.com/repos/gittc100/HTTP-AJAX/commits{/sha}","git_commits_url":"https://api.github.com/repos/gittc100/HTTP-AJAX/git/commits{/sha}","comments_url":"https://api.github.com/repos/gittc100/HTTP-AJAX/comments{/number}","issue_comment_url":"https://api.github.com/repos/gittc100/HTTP-AJAX/issues/comments{/number}","contents_url":"https://api.github.com/repos/gittc100/HTTP-AJAX/contents/{+path}","compare_url":"https://api.github.com/repos/gittc100/HTTP-AJAX/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gittc100/HTTP-AJAX/merges","archive_url":"https://api.github.com/repos/gittc100/HTTP-AJAX/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gittc100/HTTP-AJAX/downloads","issues_url":"https://api.github.com/repos/gittc100/HTTP-AJAX/issues{/number}","pulls_url":"https://api.github.com/repos/gittc100/HTTP-AJAX/pulls{/number}","milestones_url":"https://api.github.com/repos/gittc100/HTTP-AJAX/milestones{/number}","notifications_url":"https://api.github.com/repos/gittc100/HTTP-AJAX/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gittc100/HTTP-AJAX/labels{/name}","releases_url":"https://api.github.com/repos/gittc100/HTTP-AJAX/releases{/id}","deployments_url":"https://api.github.com/repos/gittc100/HTTP-AJAX/deployments","created_at":"2018-11-28T20:14:39Z","updated_at":"2018-11-29T23:55:32Z","pushed_at":"2018-11-29T23:55:31Z","git_url":"git://github.com/gittc100/HTTP-AJAX.git","ssh_url":"git@github.com:gittc100/HTTP-AJAX.git","clone_url":"https://github.com/gittc100/HTTP-AJAX.git","svn_url":"https://github.com/gittc100/HTTP-AJAX","homepage":null,"size":220,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"LambdaSchool:master","ref":"master","sha":"6c7489efc061db8e0e12cb6f03793bce1803c4dd","user":{"login":"LambdaSchool","id":24780114,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0NzgwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/24780114?v=4","gravatar_id":"","url":"https://api.github.com/users/LambdaSchool","html_url":"https://github.com/LambdaSchool","followers_url":"https://api.github.com/users/LambdaSchool/followers","following_url":"https://api.github.com/users/LambdaSchool/following{/other_user}","gists_url":"https://api.github.com/users/LambdaSchool/gists{/gist_id}","starred_url":"https://api.github.com/users/LambdaSchool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LambdaSchool/subscriptions","organizations_url":"https://api.github.com/users/LambdaSchool/orgs","repos_url":"https://api.github.com/users/LambdaSchool/repos","events_url":"https://api.github.com/users/LambdaSchool/events{/privacy}","received_events_url":"https://api.github.com/users/LambdaSchool/received_events","type":"Organization","site_admin":false},"repo":{"id":89299766,"node_id":"MDEwOlJlcG9zaXRvcnk4OTI5OTc2Ng==","name":"HTTP-AJAX","full_name":"LambdaSchool/HTTP-AJAX","private":false,"owner":{"login":"LambdaSchool","id":24780114,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0NzgwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/24780114?v=4","gravatar_id":"","url":"https://api.github.com/users/LambdaSchool","html_url":"https://github.com/LambdaSchool","followers_url":"https://api.github.com/users/LambdaSchool/followers","following_url":"https://api.github.com/users/LambdaSchool/following{/other_user}","gists_url":"https://api.github.com/users/LambdaSchool/gists{/gist_id}","starred_url":"https://api.github.com/users/LambdaSchool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LambdaSchool/subscriptions","organizations_url":"https://api.github.com/users/LambdaSchool/orgs","repos_url":"https://api.github.com/users/LambdaSchool/repos","events_url":"https://api.github.com/users/LambdaSchool/events{/privacy}","received_events_url":"https://api.github.com/users/LambdaSchool/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/LambdaSchool/HTTP-AJAX","description":null,"fork":false,"url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX","forks_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/forks","keys_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/teams","hooks_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/hooks","issue_events_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/issues/events{/number}","events_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/events","assignees_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/assignees{/user}","branches_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/branches{/branch}","tags_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/tags","blobs_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/git/refs{/sha}","trees_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/statuses/{sha}","languages_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/languages","stargazers_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/stargazers","contributors_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/contributors","subscribers_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/subscribers","subscription_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/subscription","commits_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/commits{/sha}","git_commits_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/git/commits{/sha}","comments_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/comments{/number}","issue_comment_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/issues/comments{/number}","contents_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/contents/{+path}","compare_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/merges","archive_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/downloads","issues_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/issues{/number}","pulls_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/pulls{/number}","milestones_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/milestones{/number}","notifications_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/labels{/name}","releases_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/releases{/id}","deployments_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/deployments","created_at":"2017-04-25T00:35:46Z","updated_at":"2018-10-17T16:07:38Z","pushed_at":"2018-11-30T15:44:08Z","git_url":"git://github.com/LambdaSchool/HTTP-AJAX.git","ssh_url":"git@github.com:LambdaSchool/HTTP-AJAX.git","clone_url":"https://github.com/LambdaSchool/HTTP-AJAX.git","svn_url":"https://github.com/LambdaSchool/HTTP-AJAX","homepage":null,"size":45,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":725,"mirror_url":null,"archived":false,"open_issues_count":517,"license":null,"forks":725,"open_issues":517,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/pulls/571"},"html":{"href":"https://github.com/LambdaSchool/HTTP-AJAX/pull/571"},"issue":{"href":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/issues/571"},"comments":{"href":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/issues/571/comments"},"review_comments":{"href":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/pulls/571/comments"},"review_comment":{"href":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/pulls/571/commits"},"statuses":{"href":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/statuses/d24c3739140b5cfc48b966964bc563bdcd41af91"}},"author_association":"NONE"}}
{"actor":{"display_login":"johnoro"}}