{"action":"created","comment":{"url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/pulls/comments/239195161","pull_request_review_id":181918729,"id":239195161,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzOTE5NTE2MQ==","diff_hunk":"@@ -0,0 +1,106 @@\n+import React, { Component } from 'react';\n+import { Route, Link } from 'react-router-dom';\n+import './App.css';\n+import axios from 'axios';\n+\n+import FriendsList from './components/FriendsList';\n+import SubmitNewFriend from './components/SubmitNewFriend';\n+import EditFriend from './components/EditFriend';\n+\n+class App extends Component {\n+  constructor() {\n+    super();\n+    this.state = {\n+      friends: [],\n+      name: \"\",\n+      age: null,\n+      email: \"\"\n+    }\n+  }\n+\n+  componentDidMount() {\n+    axios\n+        .get(\"http://localhost:5000/friends\")\n+        .then(response => {\n+            this.setState({friends: response.data})\n+        })\n+        .catch(err => {\n+            console.log(err);\n+        })\n+  }\n+\n+  handleChange = event => {\n+    this.setState({\n+      [event.target.name]: event.target.value,\n+    })\n+  }\n+\n+  addNewFriend = event => {\n+    const newFriendObj = {\n+      name: this.state.name,\n+      age: this.state.age,\n+      email: this.state.email","path":"friends/src/App.js","position":42,"original_position":42,"commit_id":"f255275226f707314a9132534341d31890c5b1f8","original_commit_id":"f255275226f707314a9132534341d31890c5b1f8","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":"This object could be a little cleaner with a bit of [object destructuring](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment#Object_destructuring):\r\n```javascript\r\naddNewFriend = event => {\r\n  // makes variables for name, age, and email w/ values off of state\r\n  const { name, age, email } = this.state;\r\n  // assigns these keys with their variables' corresponding values (shorthand)\r\n  const newFriendObj = { name, age, email };\r\n  // ...\r\n};\r\n```","created_at":"2018-12-05T19:00:06Z","updated_at":"2018-12-05T19:01:51Z","html_url":"https://github.com/LambdaSchool/HTTP-AJAX/pull/563#discussion_r239195161","pull_request_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/pulls/563","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/pulls/comments/239195161"},"html":{"href":"https://github.com/LambdaSchool/HTTP-AJAX/pull/563#discussion_r239195161"},"pull_request":{"href":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/pulls/563"}}},"pull_request":{"url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/pulls/563","id":234416893,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM0NDE2ODkz","html_url":"https://github.com/LambdaSchool/HTTP-AJAX/pull/563","diff_url":"https://github.com/LambdaSchool/HTTP-AJAX/pull/563.diff","patch_url":"https://github.com/LambdaSchool/HTTP-AJAX/pull/563.patch","issue_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/issues/563","number":563,"state":"open","locked":false,"title":"Daren Larson","user":{"login":"darenlarson","id":26050819,"node_id":"MDQ6VXNlcjI2MDUwODE5","avatar_url":"https://avatars0.githubusercontent.com/u/26050819?v=4","gravatar_id":"","url":"https://api.github.com/users/darenlarson","html_url":"https://github.com/darenlarson","followers_url":"https://api.github.com/users/darenlarson/followers","following_url":"https://api.github.com/users/darenlarson/following{/other_user}","gists_url":"https://api.github.com/users/darenlarson/gists{/gist_id}","starred_url":"https://api.github.com/users/darenlarson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darenlarson/subscriptions","organizations_url":"https://api.github.com/users/darenlarson/orgs","repos_url":"https://api.github.com/users/darenlarson/repos","events_url":"https://api.github.com/users/darenlarson/events{/privacy}","received_events_url":"https://api.github.com/users/darenlarson/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-28T20:40:55Z","updated_at":"2018-12-05T19:01:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"57201b03bc0d1f6a3df9e4e36ee305796967827d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/pulls/563/commits","review_comments_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/pulls/563/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/563/comments","statuses_url":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/statuses/f255275226f707314a9132534341d31890c5b1f8","head":{"label":"darenlarson:master","ref":"master","sha":"f255275226f707314a9132534341d31890c5b1f8","user":{"login":"darenlarson","id":26050819,"node_id":"MDQ6VXNlcjI2MDUwODE5","avatar_url":"https://avatars0.githubusercontent.com/u/26050819?v=4","gravatar_id":"","url":"https://api.github.com/users/darenlarson","html_url":"https://github.com/darenlarson","followers_url":"https://api.github.com/users/darenlarson/followers","following_url":"https://api.github.com/users/darenlarson/following{/other_user}","gists_url":"https://api.github.com/users/darenlarson/gists{/gist_id}","starred_url":"https://api.github.com/users/darenlarson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darenlarson/subscriptions","organizations_url":"https://api.github.com/users/darenlarson/orgs","repos_url":"https://api.github.com/users/darenlarson/repos","events_url":"https://api.github.com/users/darenlarson/events{/privacy}","received_events_url":"https://api.github.com/users/darenlarson/received_events","type":"User","site_admin":false},"repo":{"id":159561037,"node_id":"MDEwOlJlcG9zaXRvcnkxNTk1NjEwMzc=","name":"HTTP-AJAX","full_name":"darenlarson/HTTP-AJAX","private":false,"owner":{"login":"darenlarson","id":26050819,"node_id":"MDQ6VXNlcjI2MDUwODE5","avatar_url":"https://avatars0.githubusercontent.com/u/26050819?v=4","gravatar_id":"","url":"https://api.github.com/users/darenlarson","html_url":"https://github.com/darenlarson","followers_url":"https://api.github.com/users/darenlarson/followers","following_url":"https://api.github.com/users/darenlarson/following{/other_user}","gists_url":"https://api.github.com/users/darenlarson/gists{/gist_id}","starred_url":"https://api.github.com/users/darenlarson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darenlarson/subscriptions","organizations_url":"https://api.github.com/users/darenlarson/orgs","repos_url":"https://api.github.com/users/darenlarson/repos","events_url":"https://api.github.com/users/darenlarson/events{/privacy}","received_events_url":"https://api.github.com/users/darenlarson/received_events","type":"User","site_admin":false},"html_url":"https://github.com/darenlarson/HTTP-AJAX","description":null,"fork":true,"url":"https://api.github.com/repos/darenlarson/HTTP-AJAX","forks_url":"https://api.github.com/repos/darenlarson/HTTP-AJAX/forks","keys_url":"https://api.github.com/repos/darenlarson/HTTP-AJAX/keys{/key_id}","collaborators_url":"https://api.github.com/repos/darenlarson/HTTP-AJAX/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/darenlarson/HTTP-AJAX/teams","hooks_url":"https://api.github.com/repos/darenlarson/HTTP-AJAX/hooks","issue_events_url":"https://api.github.com/repos/darenlarson/HTTP-AJAX/issues/events{/number}","events_url":"https://api.github.com/repos/darenlarson/HTTP-AJAX/events","assignees_url":"https://api.github.com/repos/darenlarson/HTTP-AJAX/assignees{/user}","branches_url":"https://api.github.com/repos/darenlarson/HTTP-AJAX/branches{/branch}","tags_url":"https://api.github.com/repos/darenlarson/HTTP-AJAX/tags","blobs_url":"https://api.github.com/repos/darenlarson/HTTP-AJAX/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/darenlarson/HTTP-AJAX/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/darenlarson/HTTP-AJAX/git/refs{/sha}","trees_url":"https://api.github.com/repos/darenlarson/HTTP-AJAX/git/trees{/sha}","statuses_url":"https://api.github.com/repos/darenlarson/HTTP-AJAX/statuses/{sha}","languages_url":"https://api.github.com/repos/darenlarson/HTTP-AJAX/languages","stargazers_url":"https://api.github.com/repos/darenlarson/HTTP-AJAX/stargazers","contributors_url":"https://api.github.com/repos/darenlarson/HTTP-AJAX/contributors","subscribers_url":"https://api.github.com/repos/darenlarson/HTTP-AJAX/subscribers","subscription_url":"https://api.github.com/repos/darenlarson/HTTP-AJAX/subscription","commits_url":"https://api.github.com/repos/darenlarson/HTTP-AJAX/commits{/sha}","git_commits_url":"https://api.github.com/repos/darenlarson/HTTP-AJAX/git/commits{/sha}","comments_url":"https://api.github.com/repos/darenlarson/HTTP-AJAX/comments{/number}","issue_comment_url":"https://api.github.com/repos/darenlarson/HTTP-AJAX/issues/comments{/number}","contents_url":"https://api.github.com/repos/darenlarson/HTTP-AJAX/contents/{+path}","compare_url":"https://api.github.com/repos/darenlarson/HTTP-AJAX/compare/{base}...{head}","merges_url":"https://api.github.com/repos/darenlarson/HTTP-AJAX/merges","archive_url":"https://api.github.com/repos/darenlarson/HTTP-AJAX/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/darenlarson/HTTP-AJAX/downloads","issues_url":"https://api.github.com/repos/darenlarson/HTTP-AJAX/issues{/number}","pulls_url":"https://api.github.com/repos/darenlarson/HTTP-AJAX/pulls{/number}","milestones_url":"https://api.github.com/repos/darenlarson/HTTP-AJAX/milestones{/number}","notifications_url":"https://api.github.com/repos/darenlarson/HTTP-AJAX/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/darenlarson/HTTP-AJAX/labels{/name}","releases_url":"https://api.github.com/repos/darenlarson/HTTP-AJAX/releases{/id}","deployments_url":"https://api.github.com/repos/darenlarson/HTTP-AJAX/deployments","created_at":"2018-11-28T20:31:55Z","updated_at":"2018-11-29T23:57:32Z","pushed_at":"2018-11-29T23:57:30Z","git_url":"git://github.com/darenlarson/HTTP-AJAX.git","ssh_url":"git@github.com:darenlarson/HTTP-AJAX.git","clone_url":"https://github.com/darenlarson/HTTP-AJAX.git","svn_url":"https://github.com/darenlarson/HTTP-AJAX","homepage":null,"size":216,"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-12-04T20:10:36Z","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":730,"mirror_url":null,"archived":false,"open_issues_count":519,"license":null,"forks":730,"open_issues":519,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/pulls/563"},"html":{"href":"https://github.com/LambdaSchool/HTTP-AJAX/pull/563"},"issue":{"href":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/issues/563"},"comments":{"href":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/issues/563/comments"},"review_comments":{"href":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/pulls/563/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/563/commits"},"statuses":{"href":"https://api.github.com/repos/LambdaSchool/HTTP-AJAX/statuses/f255275226f707314a9132534341d31890c5b1f8"}},"author_association":"NONE"}}
{"actor":{"display_login":"johnoro"}}