{"action":"created","issue":{"url":"https://api.github.com/repos/coderjonny/react-style-guide/issues/4","labels_url":"https://api.github.com/repos/coderjonny/react-style-guide/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/coderjonny/react-style-guide/issues/4/comments","events_url":"https://api.github.com/repos/coderjonny/react-style-guide/issues/4/events","html_url":"https://github.com/coderjonny/react-style-guide/issues/4","id":89606500,"number":4,"title":"setState doesn't not replace, it merges.","user":{"login":"tmbtech","id":947222,"avatar_url":"https://avatars.githubusercontent.com/u/947222?v=3","gravatar_id":"","url":"https://api.github.com/users/tmbtech","html_url":"https://github.com/tmbtech","followers_url":"https://api.github.com/users/tmbtech/followers","following_url":"https://api.github.com/users/tmbtech/following{/other_user}","gists_url":"https://api.github.com/users/tmbtech/gists{/gist_id}","starred_url":"https://api.github.com/users/tmbtech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmbtech/subscriptions","organizations_url":"https://api.github.com/users/tmbtech/orgs","repos_url":"https://api.github.com/users/tmbtech/repos","events_url":"https://api.github.com/users/tmbtech/events{/privacy}","received_events_url":"https://api.github.com/users/tmbtech/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-19T16:31:47Z","updated_at":"2015-06-19T17:55:55Z","closed_at":null,"body":"This part of the readme should be updated.\r\n```   \r\nthis.setState({ isEditing: true });\r\n   ... (later) ... \r\nthis.setState({ isActive: true }); // isEditing no longer part of state\r\n```\r\n\r\nsetState doesn't replace the entire state object, it merges. I think you are referring to `React.replaceState()`\r\nhttps://facebook.github.io/react/docs/component-api.html#setstate\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/coderjonny/react-style-guide/issues/comments/113589920","html_url":"https://github.com/coderjonny/react-style-guide/issues/4#issuecomment-113589920","issue_url":"https://api.github.com/repos/coderjonny/react-style-guide/issues/4","id":113589920,"user":{"login":"coderjonny","id":753091,"avatar_url":"https://avatars.githubusercontent.com/u/753091?v=3","gravatar_id":"","url":"https://api.github.com/users/coderjonny","html_url":"https://github.com/coderjonny","followers_url":"https://api.github.com/users/coderjonny/followers","following_url":"https://api.github.com/users/coderjonny/following{/other_user}","gists_url":"https://api.github.com/users/coderjonny/gists{/gist_id}","starred_url":"https://api.github.com/users/coderjonny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coderjonny/subscriptions","organizations_url":"https://api.github.com/users/coderjonny/orgs","repos_url":"https://api.github.com/users/coderjonny/repos","events_url":"https://api.github.com/users/coderjonny/events{/privacy}","received_events_url":"https://api.github.com/users/coderjonny/received_events","type":"User","site_admin":false},"created_at":"2015-06-19T17:55:55Z","updated_at":"2015-06-19T17:55:55Z","body":"Thanks Robbie! \r\n\r\nI should update the style guide for es6 syntax after your talk. :+1: "}}