{"action":"created","comment":{"url":"https://api.github.com/repos/faltamiranda/startup/pulls/comments/86138959","pull_request_review_id":6809977,"id":86138959,"diff_hunk":"@@ -10,30 +11,32 @@ class List extends React.Component {\n  render() {\n    return (\n      <ul>\n-       {this.renderItems()}\n+       {this.renderItems() }\n      </ul>\n    );\n  }\n \n+ editMovie(index){\n+    let mo = JSON.parse(localStorage.getItem(\"movies\"))\n+    console.log(index);\n+    console.log(mo[index].title);\n+}\n+\n  renderItems () {\n-   let favourites = this.props.movies.filter( function(item) {\n-     return item.fav;\n-   })\n-   console.log(favourites);\n-   return favourites.map(this.renderItem);\n- }\n+    if (localStorage.getItem(\"movies\") !== null){","path":"05-UI-ReactJS/react-builder-master/source/list.js","position":null,"original_position":29,"commit_id":"a315226f1fa439cc5ff2ee4105797b890181607c","original_commit_id":"a315226f1fa439cc5ff2ee4105797b890181607c","user":{"login":"cristian-cereseto","id":4541855,"avatar_url":"https://avatars.githubusercontent.com/u/4541855?v=3","gravatar_id":"","url":"https://api.github.com/users/cristian-cereseto","html_url":"https://github.com/cristian-cereseto","followers_url":"https://api.github.com/users/cristian-cereseto/followers","following_url":"https://api.github.com/users/cristian-cereseto/following{/other_user}","gists_url":"https://api.github.com/users/cristian-cereseto/gists{/gist_id}","starred_url":"https://api.github.com/users/cristian-cereseto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cristian-cereseto/subscriptions","organizations_url":"https://api.github.com/users/cristian-cereseto/orgs","repos_url":"https://api.github.com/users/cristian-cereseto/repos","events_url":"https://api.github.com/users/cristian-cereseto/events{/privacy}","received_events_url":"https://api.github.com/users/cristian-cereseto/received_events","type":"User","site_admin":false},"body":"you should validate with the array movies in *this.props* to desacoplate the component of localStorage (think that this way, if you want to implement a database, you will have to refactor the components)","created_at":"2016-11-02T13:23:15Z","updated_at":"2016-11-02T13:23:43Z","html_url":"https://github.com/faltamiranda/startup/pull/8#discussion_r86138959","pull_request_url":"https://api.github.com/repos/faltamiranda/startup/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/faltamiranda/startup/pulls/comments/86138959"},"html":{"href":"https://github.com/faltamiranda/startup/pull/8#discussion_r86138959"},"pull_request":{"href":"https://api.github.com/repos/faltamiranda/startup/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/faltamiranda/startup/pulls/8","id":91451308,"html_url":"https://github.com/faltamiranda/startup/pull/8","diff_url":"https://github.com/faltamiranda/startup/pull/8.diff","patch_url":"https://github.com/faltamiranda/startup/pull/8.patch","issue_url":"https://api.github.com/repos/faltamiranda/startup/issues/8","number":8,"state":"open","locked":false,"title":"Topic 5 ","user":{"login":"faltamiranda","id":22531155,"avatar_url":"https://avatars.githubusercontent.com/u/22531155?v=3","gravatar_id":"","url":"https://api.github.com/users/faltamiranda","html_url":"https://github.com/faltamiranda","followers_url":"https://api.github.com/users/faltamiranda/followers","following_url":"https://api.github.com/users/faltamiranda/following{/other_user}","gists_url":"https://api.github.com/users/faltamiranda/gists{/gist_id}","starred_url":"https://api.github.com/users/faltamiranda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faltamiranda/subscriptions","organizations_url":"https://api.github.com/users/faltamiranda/orgs","repos_url":"https://api.github.com/users/faltamiranda/repos","events_url":"https://api.github.com/users/faltamiranda/events{/privacy}","received_events_url":"https://api.github.com/users/faltamiranda/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-28T20:58:39Z","updated_at":"2016-11-02T13:23:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dbb3cdc9543b5d95cfbbfbc8a7261f8738a79e5d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/faltamiranda/startup/pulls/8/commits","review_comments_url":"https://api.github.com/repos/faltamiranda/startup/pulls/8/comments","review_comment_url":"https://api.github.com/repos/faltamiranda/startup/pulls/comments{/number}","comments_url":"https://api.github.com/repos/faltamiranda/startup/issues/8/comments","statuses_url":"https://api.github.com/repos/faltamiranda/startup/statuses/a315226f1fa439cc5ff2ee4105797b890181607c","head":{"label":"faltamiranda:topic-5","ref":"topic-5","sha":"a315226f1fa439cc5ff2ee4105797b890181607c","user":{"login":"faltamiranda","id":22531155,"avatar_url":"https://avatars.githubusercontent.com/u/22531155?v=3","gravatar_id":"","url":"https://api.github.com/users/faltamiranda","html_url":"https://github.com/faltamiranda","followers_url":"https://api.github.com/users/faltamiranda/followers","following_url":"https://api.github.com/users/faltamiranda/following{/other_user}","gists_url":"https://api.github.com/users/faltamiranda/gists{/gist_id}","starred_url":"https://api.github.com/users/faltamiranda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faltamiranda/subscriptions","organizations_url":"https://api.github.com/users/faltamiranda/orgs","repos_url":"https://api.github.com/users/faltamiranda/repos","events_url":"https://api.github.com/users/faltamiranda/events{/privacy}","received_events_url":"https://api.github.com/users/faltamiranda/received_events","type":"User","site_admin":false},"repo":{"id":69688845,"name":"startup","full_name":"faltamiranda/startup","owner":{"login":"faltamiranda","id":22531155,"avatar_url":"https://avatars.githubusercontent.com/u/22531155?v=3","gravatar_id":"","url":"https://api.github.com/users/faltamiranda","html_url":"https://github.com/faltamiranda","followers_url":"https://api.github.com/users/faltamiranda/followers","following_url":"https://api.github.com/users/faltamiranda/following{/other_user}","gists_url":"https://api.github.com/users/faltamiranda/gists{/gist_id}","starred_url":"https://api.github.com/users/faltamiranda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faltamiranda/subscriptions","organizations_url":"https://api.github.com/users/faltamiranda/orgs","repos_url":"https://api.github.com/users/faltamiranda/repos","events_url":"https://api.github.com/users/faltamiranda/events{/privacy}","received_events_url":"https://api.github.com/users/faltamiranda/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/faltamiranda/startup","description":"Basic folder structure","fork":true,"url":"https://api.github.com/repos/faltamiranda/startup","forks_url":"https://api.github.com/repos/faltamiranda/startup/forks","keys_url":"https://api.github.com/repos/faltamiranda/startup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/faltamiranda/startup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/faltamiranda/startup/teams","hooks_url":"https://api.github.com/repos/faltamiranda/startup/hooks","issue_events_url":"https://api.github.com/repos/faltamiranda/startup/issues/events{/number}","events_url":"https://api.github.com/repos/faltamiranda/startup/events","assignees_url":"https://api.github.com/repos/faltamiranda/startup/assignees{/user}","branches_url":"https://api.github.com/repos/faltamiranda/startup/branches{/branch}","tags_url":"https://api.github.com/repos/faltamiranda/startup/tags","blobs_url":"https://api.github.com/repos/faltamiranda/startup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/faltamiranda/startup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/faltamiranda/startup/git/refs{/sha}","trees_url":"https://api.github.com/repos/faltamiranda/startup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/faltamiranda/startup/statuses/{sha}","languages_url":"https://api.github.com/repos/faltamiranda/startup/languages","stargazers_url":"https://api.github.com/repos/faltamiranda/startup/stargazers","contributors_url":"https://api.github.com/repos/faltamiranda/startup/contributors","subscribers_url":"https://api.github.com/repos/faltamiranda/startup/subscribers","subscription_url":"https://api.github.com/repos/faltamiranda/startup/subscription","commits_url":"https://api.github.com/repos/faltamiranda/startup/commits{/sha}","git_commits_url":"https://api.github.com/repos/faltamiranda/startup/git/commits{/sha}","comments_url":"https://api.github.com/repos/faltamiranda/startup/comments{/number}","issue_comment_url":"https://api.github.com/repos/faltamiranda/startup/issues/comments{/number}","contents_url":"https://api.github.com/repos/faltamiranda/startup/contents/{+path}","compare_url":"https://api.github.com/repos/faltamiranda/startup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/faltamiranda/startup/merges","archive_url":"https://api.github.com/repos/faltamiranda/startup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/faltamiranda/startup/downloads","issues_url":"https://api.github.com/repos/faltamiranda/startup/issues{/number}","pulls_url":"https://api.github.com/repos/faltamiranda/startup/pulls{/number}","milestones_url":"https://api.github.com/repos/faltamiranda/startup/milestones{/number}","notifications_url":"https://api.github.com/repos/faltamiranda/startup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/faltamiranda/startup/labels{/name}","releases_url":"https://api.github.com/repos/faltamiranda/startup/releases{/id}","deployments_url":"https://api.github.com/repos/faltamiranda/startup/deployments","created_at":"2016-09-30T17:49:43Z","updated_at":"2016-09-30T20:47:14Z","pushed_at":"2016-10-31T21:00:44Z","git_url":"git://github.com/faltamiranda/startup.git","ssh_url":"git@github.com:faltamiranda/startup.git","clone_url":"https://github.com/faltamiranda/startup.git","svn_url":"https://github.com/faltamiranda/startup","homepage":null,"size":26973,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"faltamiranda:master","ref":"master","sha":"6bdfca6c2636d5482496ee01a89e02954280c985","user":{"login":"faltamiranda","id":22531155,"avatar_url":"https://avatars.githubusercontent.com/u/22531155?v=3","gravatar_id":"","url":"https://api.github.com/users/faltamiranda","html_url":"https://github.com/faltamiranda","followers_url":"https://api.github.com/users/faltamiranda/followers","following_url":"https://api.github.com/users/faltamiranda/following{/other_user}","gists_url":"https://api.github.com/users/faltamiranda/gists{/gist_id}","starred_url":"https://api.github.com/users/faltamiranda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faltamiranda/subscriptions","organizations_url":"https://api.github.com/users/faltamiranda/orgs","repos_url":"https://api.github.com/users/faltamiranda/repos","events_url":"https://api.github.com/users/faltamiranda/events{/privacy}","received_events_url":"https://api.github.com/users/faltamiranda/received_events","type":"User","site_admin":false},"repo":{"id":69688845,"name":"startup","full_name":"faltamiranda/startup","owner":{"login":"faltamiranda","id":22531155,"avatar_url":"https://avatars.githubusercontent.com/u/22531155?v=3","gravatar_id":"","url":"https://api.github.com/users/faltamiranda","html_url":"https://github.com/faltamiranda","followers_url":"https://api.github.com/users/faltamiranda/followers","following_url":"https://api.github.com/users/faltamiranda/following{/other_user}","gists_url":"https://api.github.com/users/faltamiranda/gists{/gist_id}","starred_url":"https://api.github.com/users/faltamiranda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faltamiranda/subscriptions","organizations_url":"https://api.github.com/users/faltamiranda/orgs","repos_url":"https://api.github.com/users/faltamiranda/repos","events_url":"https://api.github.com/users/faltamiranda/events{/privacy}","received_events_url":"https://api.github.com/users/faltamiranda/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/faltamiranda/startup","description":"Basic folder structure","fork":true,"url":"https://api.github.com/repos/faltamiranda/startup","forks_url":"https://api.github.com/repos/faltamiranda/startup/forks","keys_url":"https://api.github.com/repos/faltamiranda/startup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/faltamiranda/startup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/faltamiranda/startup/teams","hooks_url":"https://api.github.com/repos/faltamiranda/startup/hooks","issue_events_url":"https://api.github.com/repos/faltamiranda/startup/issues/events{/number}","events_url":"https://api.github.com/repos/faltamiranda/startup/events","assignees_url":"https://api.github.com/repos/faltamiranda/startup/assignees{/user}","branches_url":"https://api.github.com/repos/faltamiranda/startup/branches{/branch}","tags_url":"https://api.github.com/repos/faltamiranda/startup/tags","blobs_url":"https://api.github.com/repos/faltamiranda/startup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/faltamiranda/startup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/faltamiranda/startup/git/refs{/sha}","trees_url":"https://api.github.com/repos/faltamiranda/startup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/faltamiranda/startup/statuses/{sha}","languages_url":"https://api.github.com/repos/faltamiranda/startup/languages","stargazers_url":"https://api.github.com/repos/faltamiranda/startup/stargazers","contributors_url":"https://api.github.com/repos/faltamiranda/startup/contributors","subscribers_url":"https://api.github.com/repos/faltamiranda/startup/subscribers","subscription_url":"https://api.github.com/repos/faltamiranda/startup/subscription","commits_url":"https://api.github.com/repos/faltamiranda/startup/commits{/sha}","git_commits_url":"https://api.github.com/repos/faltamiranda/startup/git/commits{/sha}","comments_url":"https://api.github.com/repos/faltamiranda/startup/comments{/number}","issue_comment_url":"https://api.github.com/repos/faltamiranda/startup/issues/comments{/number}","contents_url":"https://api.github.com/repos/faltamiranda/startup/contents/{+path}","compare_url":"https://api.github.com/repos/faltamiranda/startup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/faltamiranda/startup/merges","archive_url":"https://api.github.com/repos/faltamiranda/startup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/faltamiranda/startup/downloads","issues_url":"https://api.github.com/repos/faltamiranda/startup/issues{/number}","pulls_url":"https://api.github.com/repos/faltamiranda/startup/pulls{/number}","milestones_url":"https://api.github.com/repos/faltamiranda/startup/milestones{/number}","notifications_url":"https://api.github.com/repos/faltamiranda/startup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/faltamiranda/startup/labels{/name}","releases_url":"https://api.github.com/repos/faltamiranda/startup/releases{/id}","deployments_url":"https://api.github.com/repos/faltamiranda/startup/deployments","created_at":"2016-09-30T17:49:43Z","updated_at":"2016-09-30T20:47:14Z","pushed_at":"2016-10-31T21:00:44Z","git_url":"git://github.com/faltamiranda/startup.git","ssh_url":"git@github.com:faltamiranda/startup.git","clone_url":"https://github.com/faltamiranda/startup.git","svn_url":"https://github.com/faltamiranda/startup","homepage":null,"size":26973,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/faltamiranda/startup/pulls/8"},"html":{"href":"https://github.com/faltamiranda/startup/pull/8"},"issue":{"href":"https://api.github.com/repos/faltamiranda/startup/issues/8"},"comments":{"href":"https://api.github.com/repos/faltamiranda/startup/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/faltamiranda/startup/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/faltamiranda/startup/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/faltamiranda/startup/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/faltamiranda/startup/statuses/a315226f1fa439cc5ff2ee4105797b890181607c"}}}}
{"actor":{"display_login":"cristian-cereseto"}}