{"action":"created","issue":{"url":"https://api.github.com/repos/xuchaobei/react-book/issues/5","repository_url":"https://api.github.com/repos/xuchaobei/react-book","labels_url":"https://api.github.com/repos/xuchaobei/react-book/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/xuchaobei/react-book/issues/5/comments","events_url":"https://api.github.com/repos/xuchaobei/react-book/issues/5/events","html_url":"https://github.com/xuchaobei/react-book/issues/5","id":342652222,"node_id":"MDU6SXNzdWUzNDI2NTIyMjI=","number":5,"title":"第4章 state 的更新是异步的","user":{"login":"ycshill","id":16410254,"node_id":"MDQ6VXNlcjE2NDEwMjU0","avatar_url":"https://avatars3.githubusercontent.com/u/16410254?v=4","gravatar_id":"","url":"https://api.github.com/users/ycshill","html_url":"https://github.com/ycshill","followers_url":"https://api.github.com/users/ycshill/followers","following_url":"https://api.github.com/users/ycshill/following{/other_user}","gists_url":"https://api.github.com/users/ycshill/gists{/gist_id}","starred_url":"https://api.github.com/users/ycshill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ycshill/subscriptions","organizations_url":"https://api.github.com/users/ycshill/orgs","repos_url":"https://api.github.com/users/ycshill/repos","events_url":"https://api.github.com/users/ycshill/events{/privacy}","received_events_url":"https://api.github.com/users/ycshill/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-19T09:34:36Z","updated_at":"2018-07-19T09:38:46Z","closed_at":null,"author_association":"NONE","body":"1. 这个购物车数量增加的例子能够模拟吗，理论上是理解的，但是想模拟一下\r\n2. 一般的计数，万无一失的犯法都是用`this.setState((preState, props) => ({counter: preState.quantity + 1}))` ？"},"comment":{"url":"https://api.github.com/repos/xuchaobei/react-book/issues/comments/406217635","html_url":"https://github.com/xuchaobei/react-book/issues/5#issuecomment-406217635","issue_url":"https://api.github.com/repos/xuchaobei/react-book/issues/5","id":406217635,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjIxNzYzNQ==","user":{"login":"xuchaobei","id":5110783,"node_id":"MDQ6VXNlcjUxMTA3ODM=","avatar_url":"https://avatars3.githubusercontent.com/u/5110783?v=4","gravatar_id":"","url":"https://api.github.com/users/xuchaobei","html_url":"https://github.com/xuchaobei","followers_url":"https://api.github.com/users/xuchaobei/followers","following_url":"https://api.github.com/users/xuchaobei/following{/other_user}","gists_url":"https://api.github.com/users/xuchaobei/gists{/gist_id}","starred_url":"https://api.github.com/users/xuchaobei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xuchaobei/subscriptions","organizations_url":"https://api.github.com/users/xuchaobei/orgs","repos_url":"https://api.github.com/users/xuchaobei/repos","events_url":"https://api.github.com/users/xuchaobei/events{/privacy}","received_events_url":"https://api.github.com/users/xuchaobei/received_events","type":"User","site_admin":false},"created_at":"2018-07-19T09:38:46Z","updated_at":"2018-07-19T09:38:46Z","author_association":"OWNER","body":"当然可以了，自己写下代码就可以验证。多写比多看更加重要。"}}
{"actor":{"display_login":"xuchaobei"}}