{"action":"created","issue":{"url":"https://api.github.com/repos/meteor/simple-todos-react/issues/4","labels_url":"https://api.github.com/repos/meteor/simple-todos-react/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/meteor/simple-todos-react/issues/4/comments","events_url":"https://api.github.com/repos/meteor/simple-todos-react/issues/4/events","html_url":"https://github.com/meteor/simple-todos-react/issues/4","id":114616051,"number":4,"title":"Getting warning of same key children in App.jsx","user":{"login":"andreyluiz","id":1965897,"avatar_url":"https://avatars.githubusercontent.com/u/1965897?v=3","gravatar_id":"","url":"https://api.github.com/users/andreyluiz","html_url":"https://github.com/andreyluiz","followers_url":"https://api.github.com/users/andreyluiz/followers","following_url":"https://api.github.com/users/andreyluiz/following{/other_user}","gists_url":"https://api.github.com/users/andreyluiz/gists{/gist_id}","starred_url":"https://api.github.com/users/andreyluiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreyluiz/subscriptions","organizations_url":"https://api.github.com/users/andreyluiz/orgs","repos_url":"https://api.github.com/users/andreyluiz/repos","events_url":"https://api.github.com/users/andreyluiz/events{/privacy}","received_events_url":"https://api.github.com/users/andreyluiz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-02T15:21:51Z","updated_at":"2015-11-08T23:32:16Z","closed_at":null,"body":"Guys, I got stuck with a warning in the Chrome's console:\r\n\r\n    Warning: flattenChildren(...): Encountered two children with the same key, `.${task=1_id}`. Child keys must be unique; when two children share a key, only the first child will be used.\r\n\r\nWith a further reading (and the message is straightforward), I found out that some of the key were duplicated. And its why Chrome is screaming for. But look at the code:\r\n\r\n```jsx\r\nApp = React.createClass({\r\n  getTasks() {\r\n    return [\r\n      { _id: 1, text: 'This is task 1' },\r\n      { _id: 2, text: 'This is task 2' },\r\n      { _id: 3, text: 'This is task 3' }\r\n    ];\r\n  },\r\n\r\n  renderTasks() {\r\n    return this.getTasks().map((task) => {\r\n      return <Task key=\"{task._id}\" task={task} />;\r\n    });\r\n  },\r\n\r\n  render() {\r\n    return (\r\n      <div className=\"container\">\r\n        <header>\r\n          <h1>Todo List</h1>\r\n        </header>\r\n\r\n        <ul>\r\n          {this.renderTasks()}\r\n        </ul>\r\n      </div>\r\n    );\r\n  }\r\n});\r\n\r\n```\r\n\r\nFor me, its actually simple to understand that the code is doing the right stuff. Or I'm missing a very small detail.\r\n\r\nAm I doing something wrong?\r\n\r\nThank's. :)"},"comment":{"url":"https://api.github.com/repos/meteor/simple-todos-react/issues/comments/154886583","html_url":"https://github.com/meteor/simple-todos-react/issues/4#issuecomment-154886583","issue_url":"https://api.github.com/repos/meteor/simple-todos-react/issues/4","id":154886583,"user":{"login":"andreyluiz","id":1965897,"avatar_url":"https://avatars.githubusercontent.com/u/1965897?v=3","gravatar_id":"","url":"https://api.github.com/users/andreyluiz","html_url":"https://github.com/andreyluiz","followers_url":"https://api.github.com/users/andreyluiz/followers","following_url":"https://api.github.com/users/andreyluiz/following{/other_user}","gists_url":"https://api.github.com/users/andreyluiz/gists{/gist_id}","starred_url":"https://api.github.com/users/andreyluiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreyluiz/subscriptions","organizations_url":"https://api.github.com/users/andreyluiz/orgs","repos_url":"https://api.github.com/users/andreyluiz/repos","events_url":"https://api.github.com/users/andreyluiz/events{/privacy}","received_events_url":"https://api.github.com/users/andreyluiz/received_events","type":"User","site_admin":false},"created_at":"2015-11-08T23:32:16Z","updated_at":"2015-11-08T23:32:16Z","body":"It works now. I just created the project again. I just don't know what happened."}}