{"action":"created","issue":{"url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/531","repository_url":"https://api.github.com/repos/facebookincubator/create-react-app","labels_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/531/labels{/name}","comments_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/531/comments","events_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/531/events","html_url":"https://github.com/facebookincubator/create-react-app/pull/531","id":174412331,"number":531,"title":"Add docs for using Promises and making AJAX requests","user":{"login":"rogeliog","id":574806,"avatar_url":"https://avatars.githubusercontent.com/u/574806?v=3","gravatar_id":"","url":"https://api.github.com/users/rogeliog","html_url":"https://github.com/rogeliog","followers_url":"https://api.github.com/users/rogeliog/followers","following_url":"https://api.github.com/users/rogeliog/following{/other_user}","gists_url":"https://api.github.com/users/rogeliog/gists{/gist_id}","starred_url":"https://api.github.com/users/rogeliog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rogeliog/subscriptions","organizations_url":"https://api.github.com/users/rogeliog/orgs","repos_url":"https://api.github.com/users/rogeliog/repos","events_url":"https://api.github.com/users/rogeliog/events{/privacy}","received_events_url":"https://api.github.com/users/rogeliog/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebookincubator/create-react-app/labels/CLA%20Signed","name":"CLA Signed","color":"009900"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-01T00:50:11Z","updated_at":"2016-09-01T00:53:19Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/facebookincubator/create-react-app/pulls/531","html_url":"https://github.com/facebookincubator/create-react-app/pull/531","diff_url":"https://github.com/facebookincubator/create-react-app/pull/531.diff","patch_url":"https://github.com/facebookincubator/create-react-app/pull/531.patch"},"body":"#521  This adds some simple documentation for the fetch and Promise polyfills.\r\n\r\n@gaearon Should we also add a simple example of how to use this with React? Or do you think it falls out of scope? \r\n\r\n```javascript\r\nclass MyComponent extends Component {\r\n  state = {}\r\n\r\n  componentDidMount() {\r\n    fetch('/todos.json')\r\n    .then((response) => response.json())\r\n    .then((todos) => this.setState({ todos: todos }))\r\n    .catch((error) => console.log('Error', error));\r\n  }\r\n  \r\n  render() {\r\n    return <TodoList todos={this.state.todos} />;\r\n  }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/comments/243945675","html_url":"https://github.com/facebookincubator/create-react-app/pull/531#issuecomment-243945675","issue_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/531","id":243945675,"user":{"login":"facebook-github-bot-0","id":8398734,"avatar_url":"https://avatars.githubusercontent.com/u/8398734?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook-github-bot-0","html_url":"https://github.com/facebook-github-bot-0","followers_url":"https://api.github.com/users/facebook-github-bot-0/followers","following_url":"https://api.github.com/users/facebook-github-bot-0/following{/other_user}","gists_url":"https://api.github.com/users/facebook-github-bot-0/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook-github-bot-0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook-github-bot-0/subscriptions","organizations_url":"https://api.github.com/users/facebook-github-bot-0/orgs","repos_url":"https://api.github.com/users/facebook-github-bot-0/repos","events_url":"https://api.github.com/users/facebook-github-bot-0/events{/privacy}","received_events_url":"https://api.github.com/users/facebook-github-bot-0/received_events","type":"User","site_admin":false},"created_at":"2016-09-01T00:53:19Z","updated_at":"2016-09-01T00:53:19Z","body":"Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!"}}
{"actor":{"display_login":"facebook-github-bot-0"}}