{"action":"created","comment":{"url":"https://api.github.com/repos/HackYourFuture/React/pulls/comments/172143132","pull_request_review_id":101106251,"id":172143132,"diff_hunk":"@@ -0,0 +1,45 @@\n+import React, { Component } from \"react\";\n+import TaskItem from \"./taskItem.js\";\n+import AddingContainer from \"./addingContainer.js\"\n+\n+export let todoArray = [\n+    { description: 'Get out of bed', deadLine: 'Wed Sep 13 2017' },\n+    { description: 'Brush teeth', deadLine: 'Thu Sep 14 2017' },\n+    { description: 'Eat breakfast', deadLine: 'Fri Sep 15 2017' }\n+]\n+\n+class TodoList extends Component {\n+    constructor(props) {\n+        super(props)\n+        this.state = {\n+            tasks: todoArray\n+        }\n+    }\n+   \n+    addingTask = (description, deadLine) => {\n+        this.setState((previousState) => ({\n+                tasks: [ { description: description, deadLine: deadLine }, ...previousState.tasks]\n+            })\n+        )\n+        console.log(this.state)\n+    }\n+    render() {\n+        let tasks = this.state.tasks.map((task, index) =>\n+            <TaskItem\n+                description={task.description}\n+                deadLine={task.deadLine}\n+                key={index}","path":"todo-app/src/components/todoList.js","position":31,"original_position":31,"commit_id":"e990dcd634fbbcc62ec9505543a47c5c67d4469a","original_commit_id":"e990dcd634fbbcc62ec9505543a47c5c67d4469a","user":{"login":"isaachinman","id":10575782,"avatar_url":"https://avatars1.githubusercontent.com/u/10575782?v=4","gravatar_id":"","url":"https://api.github.com/users/isaachinman","html_url":"https://github.com/isaachinman","followers_url":"https://api.github.com/users/isaachinman/followers","following_url":"https://api.github.com/users/isaachinman/following{/other_user}","gists_url":"https://api.github.com/users/isaachinman/gists{/gist_id}","starred_url":"https://api.github.com/users/isaachinman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isaachinman/subscriptions","organizations_url":"https://api.github.com/users/isaachinman/orgs","repos_url":"https://api.github.com/users/isaachinman/repos","events_url":"https://api.github.com/users/isaachinman/events{/privacy}","received_events_url":"https://api.github.com/users/isaachinman/received_events","type":"User","site_admin":false},"body":"As discussed in week 2, don't use index as a key!","created_at":"2018-03-05T10:27:55Z","updated_at":"2018-03-05T10:29:01Z","html_url":"https://github.com/HackYourFuture/React/pull/51#discussion_r172143132","pull_request_url":"https://api.github.com/repos/HackYourFuture/React/pulls/51","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/HackYourFuture/React/pulls/comments/172143132"},"html":{"href":"https://github.com/HackYourFuture/React/pull/51#discussion_r172143132"},"pull_request":{"href":"https://api.github.com/repos/HackYourFuture/React/pulls/51"}}},"pull_request":{"url":"https://api.github.com/repos/HackYourFuture/React/pulls/51","id":172557502,"html_url":"https://github.com/HackYourFuture/React/pull/51","diff_url":"https://github.com/HackYourFuture/React/pull/51.diff","patch_url":"https://github.com/HackYourFuture/React/pull/51.patch","issue_url":"https://api.github.com/repos/HackYourFuture/React/issues/51","number":51,"state":"open","locked":false,"title":"Submitting week1 homework","user":{"login":"talalalamdar","id":32465000,"avatar_url":"https://avatars1.githubusercontent.com/u/32465000?v=4","gravatar_id":"","url":"https://api.github.com/users/talalalamdar","html_url":"https://github.com/talalalamdar","followers_url":"https://api.github.com/users/talalalamdar/followers","following_url":"https://api.github.com/users/talalalamdar/following{/other_user}","gists_url":"https://api.github.com/users/talalalamdar/gists{/gist_id}","starred_url":"https://api.github.com/users/talalalamdar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talalalamdar/subscriptions","organizations_url":"https://api.github.com/users/talalalamdar/orgs","repos_url":"https://api.github.com/users/talalalamdar/repos","events_url":"https://api.github.com/users/talalalamdar/events{/privacy}","received_events_url":"https://api.github.com/users/talalalamdar/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-02T17:17:15Z","updated_at":"2018-03-05T10:29:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/HackYourFuture/React/pulls/51/commits","review_comments_url":"https://api.github.com/repos/HackYourFuture/React/pulls/51/comments","review_comment_url":"https://api.github.com/repos/HackYourFuture/React/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HackYourFuture/React/issues/51/comments","statuses_url":"https://api.github.com/repos/HackYourFuture/React/statuses/e990dcd634fbbcc62ec9505543a47c5c67d4469a","head":{"label":"talalalamdar:master","ref":"master","sha":"e990dcd634fbbcc62ec9505543a47c5c67d4469a","user":{"login":"talalalamdar","id":32465000,"avatar_url":"https://avatars1.githubusercontent.com/u/32465000?v=4","gravatar_id":"","url":"https://api.github.com/users/talalalamdar","html_url":"https://github.com/talalalamdar","followers_url":"https://api.github.com/users/talalalamdar/followers","following_url":"https://api.github.com/users/talalalamdar/following{/other_user}","gists_url":"https://api.github.com/users/talalalamdar/gists{/gist_id}","starred_url":"https://api.github.com/users/talalalamdar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talalalamdar/subscriptions","organizations_url":"https://api.github.com/users/talalalamdar/orgs","repos_url":"https://api.github.com/users/talalalamdar/repos","events_url":"https://api.github.com/users/talalalamdar/events{/privacy}","received_events_url":"https://api.github.com/users/talalalamdar/received_events","type":"User","site_admin":false},"repo":{"id":122096035,"name":"React","full_name":"talalalamdar/React","owner":{"login":"talalalamdar","id":32465000,"avatar_url":"https://avatars1.githubusercontent.com/u/32465000?v=4","gravatar_id":"","url":"https://api.github.com/users/talalalamdar","html_url":"https://github.com/talalalamdar","followers_url":"https://api.github.com/users/talalalamdar/followers","following_url":"https://api.github.com/users/talalalamdar/following{/other_user}","gists_url":"https://api.github.com/users/talalalamdar/gists{/gist_id}","starred_url":"https://api.github.com/users/talalalamdar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talalalamdar/subscriptions","organizations_url":"https://api.github.com/users/talalalamdar/orgs","repos_url":"https://api.github.com/users/talalalamdar/repos","events_url":"https://api.github.com/users/talalalamdar/events{/privacy}","received_events_url":"https://api.github.com/users/talalalamdar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/talalalamdar/React","description":"Specifications React Module","fork":true,"url":"https://api.github.com/repos/talalalamdar/React","forks_url":"https://api.github.com/repos/talalalamdar/React/forks","keys_url":"https://api.github.com/repos/talalalamdar/React/keys{/key_id}","collaborators_url":"https://api.github.com/repos/talalalamdar/React/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/talalalamdar/React/teams","hooks_url":"https://api.github.com/repos/talalalamdar/React/hooks","issue_events_url":"https://api.github.com/repos/talalalamdar/React/issues/events{/number}","events_url":"https://api.github.com/repos/talalalamdar/React/events","assignees_url":"https://api.github.com/repos/talalalamdar/React/assignees{/user}","branches_url":"https://api.github.com/repos/talalalamdar/React/branches{/branch}","tags_url":"https://api.github.com/repos/talalalamdar/React/tags","blobs_url":"https://api.github.com/repos/talalalamdar/React/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/talalalamdar/React/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/talalalamdar/React/git/refs{/sha}","trees_url":"https://api.github.com/repos/talalalamdar/React/git/trees{/sha}","statuses_url":"https://api.github.com/repos/talalalamdar/React/statuses/{sha}","languages_url":"https://api.github.com/repos/talalalamdar/React/languages","stargazers_url":"https://api.github.com/repos/talalalamdar/React/stargazers","contributors_url":"https://api.github.com/repos/talalalamdar/React/contributors","subscribers_url":"https://api.github.com/repos/talalalamdar/React/subscribers","subscription_url":"https://api.github.com/repos/talalalamdar/React/subscription","commits_url":"https://api.github.com/repos/talalalamdar/React/commits{/sha}","git_commits_url":"https://api.github.com/repos/talalalamdar/React/git/commits{/sha}","comments_url":"https://api.github.com/repos/talalalamdar/React/comments{/number}","issue_comment_url":"https://api.github.com/repos/talalalamdar/React/issues/comments{/number}","contents_url":"https://api.github.com/repos/talalalamdar/React/contents/{+path}","compare_url":"https://api.github.com/repos/talalalamdar/React/compare/{base}...{head}","merges_url":"https://api.github.com/repos/talalalamdar/React/merges","archive_url":"https://api.github.com/repos/talalalamdar/React/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/talalalamdar/React/downloads","issues_url":"https://api.github.com/repos/talalalamdar/React/issues{/number}","pulls_url":"https://api.github.com/repos/talalalamdar/React/pulls{/number}","milestones_url":"https://api.github.com/repos/talalalamdar/React/milestones{/number}","notifications_url":"https://api.github.com/repos/talalalamdar/React/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/talalalamdar/React/labels{/name}","releases_url":"https://api.github.com/repos/talalalamdar/React/releases{/id}","deployments_url":"https://api.github.com/repos/talalalamdar/React/deployments","created_at":"2018-02-19T17:21:35Z","updated_at":"2018-02-19T17:21:37Z","pushed_at":"2018-03-04T22:31:43Z","git_url":"git://github.com/talalalamdar/React.git","ssh_url":"git@github.com:talalalamdar/React.git","clone_url":"https://github.com/talalalamdar/React.git","svn_url":"https://github.com/talalalamdar/React","homepage":null,"size":618,"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":"HackYourFuture:master","ref":"master","sha":"d8357d19e83ffc8c6f01f4d5c6fd0606cde2e508","user":{"login":"HackYourFuture","id":20858568,"avatar_url":"https://avatars2.githubusercontent.com/u/20858568?v=4","gravatar_id":"","url":"https://api.github.com/users/HackYourFuture","html_url":"https://github.com/HackYourFuture","followers_url":"https://api.github.com/users/HackYourFuture/followers","following_url":"https://api.github.com/users/HackYourFuture/following{/other_user}","gists_url":"https://api.github.com/users/HackYourFuture/gists{/gist_id}","starred_url":"https://api.github.com/users/HackYourFuture/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HackYourFuture/subscriptions","organizations_url":"https://api.github.com/users/HackYourFuture/orgs","repos_url":"https://api.github.com/users/HackYourFuture/repos","events_url":"https://api.github.com/users/HackYourFuture/events{/privacy}","received_events_url":"https://api.github.com/users/HackYourFuture/received_events","type":"Organization","site_admin":false},"repo":{"id":93503545,"name":"React","full_name":"HackYourFuture/React","owner":{"login":"HackYourFuture","id":20858568,"avatar_url":"https://avatars2.githubusercontent.com/u/20858568?v=4","gravatar_id":"","url":"https://api.github.com/users/HackYourFuture","html_url":"https://github.com/HackYourFuture","followers_url":"https://api.github.com/users/HackYourFuture/followers","following_url":"https://api.github.com/users/HackYourFuture/following{/other_user}","gists_url":"https://api.github.com/users/HackYourFuture/gists{/gist_id}","starred_url":"https://api.github.com/users/HackYourFuture/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HackYourFuture/subscriptions","organizations_url":"https://api.github.com/users/HackYourFuture/orgs","repos_url":"https://api.github.com/users/HackYourFuture/repos","events_url":"https://api.github.com/users/HackYourFuture/events{/privacy}","received_events_url":"https://api.github.com/users/HackYourFuture/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HackYourFuture/React","description":"Specifications React Module","fork":false,"url":"https://api.github.com/repos/HackYourFuture/React","forks_url":"https://api.github.com/repos/HackYourFuture/React/forks","keys_url":"https://api.github.com/repos/HackYourFuture/React/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HackYourFuture/React/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HackYourFuture/React/teams","hooks_url":"https://api.github.com/repos/HackYourFuture/React/hooks","issue_events_url":"https://api.github.com/repos/HackYourFuture/React/issues/events{/number}","events_url":"https://api.github.com/repos/HackYourFuture/React/events","assignees_url":"https://api.github.com/repos/HackYourFuture/React/assignees{/user}","branches_url":"https://api.github.com/repos/HackYourFuture/React/branches{/branch}","tags_url":"https://api.github.com/repos/HackYourFuture/React/tags","blobs_url":"https://api.github.com/repos/HackYourFuture/React/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HackYourFuture/React/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HackYourFuture/React/git/refs{/sha}","trees_url":"https://api.github.com/repos/HackYourFuture/React/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HackYourFuture/React/statuses/{sha}","languages_url":"https://api.github.com/repos/HackYourFuture/React/languages","stargazers_url":"https://api.github.com/repos/HackYourFuture/React/stargazers","contributors_url":"https://api.github.com/repos/HackYourFuture/React/contributors","subscribers_url":"https://api.github.com/repos/HackYourFuture/React/subscribers","subscription_url":"https://api.github.com/repos/HackYourFuture/React/subscription","commits_url":"https://api.github.com/repos/HackYourFuture/React/commits{/sha}","git_commits_url":"https://api.github.com/repos/HackYourFuture/React/git/commits{/sha}","comments_url":"https://api.github.com/repos/HackYourFuture/React/comments{/number}","issue_comment_url":"https://api.github.com/repos/HackYourFuture/React/issues/comments{/number}","contents_url":"https://api.github.com/repos/HackYourFuture/React/contents/{+path}","compare_url":"https://api.github.com/repos/HackYourFuture/React/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HackYourFuture/React/merges","archive_url":"https://api.github.com/repos/HackYourFuture/React/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HackYourFuture/React/downloads","issues_url":"https://api.github.com/repos/HackYourFuture/React/issues{/number}","pulls_url":"https://api.github.com/repos/HackYourFuture/React/pulls{/number}","milestones_url":"https://api.github.com/repos/HackYourFuture/React/milestones{/number}","notifications_url":"https://api.github.com/repos/HackYourFuture/React/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HackYourFuture/React/labels{/name}","releases_url":"https://api.github.com/repos/HackYourFuture/React/releases{/id}","deployments_url":"https://api.github.com/repos/HackYourFuture/React/deployments","created_at":"2017-06-06T09:58:23Z","updated_at":"2018-03-02T14:44:25Z","pushed_at":"2018-03-04T22:31:44Z","git_url":"git://github.com/HackYourFuture/React.git","ssh_url":"git@github.com:HackYourFuture/React.git","clone_url":"https://github.com/HackYourFuture/React.git","svn_url":"https://github.com/HackYourFuture/React","homepage":null,"size":572,"stargazers_count":8,"watchers_count":8,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":40,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":40,"open_issues":5,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/HackYourFuture/React/pulls/51"},"html":{"href":"https://github.com/HackYourFuture/React/pull/51"},"issue":{"href":"https://api.github.com/repos/HackYourFuture/React/issues/51"},"comments":{"href":"https://api.github.com/repos/HackYourFuture/React/issues/51/comments"},"review_comments":{"href":"https://api.github.com/repos/HackYourFuture/React/pulls/51/comments"},"review_comment":{"href":"https://api.github.com/repos/HackYourFuture/React/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HackYourFuture/React/pulls/51/commits"},"statuses":{"href":"https://api.github.com/repos/HackYourFuture/React/statuses/e990dcd634fbbcc62ec9505543a47c5c67d4469a"}},"author_association":"NONE"}}
{"actor":{"display_login":"isaachinman"}}