{"action":"created","issue":{"url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/528","repository_url":"https://api.github.com/repos/facebookincubator/create-react-app","labels_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/528/labels{/name}","comments_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/528/comments","events_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/528/events","html_url":"https://github.com/facebookincubator/create-react-app/issues/528","id":174327673,"number":528,"title":"Linter complains when using arrow function for refs","user":{"login":"mrscobbler","id":1317004,"avatar_url":"https://avatars.githubusercontent.com/u/1317004?v=3","gravatar_id":"","url":"https://api.github.com/users/mrscobbler","html_url":"https://github.com/mrscobbler","followers_url":"https://api.github.com/users/mrscobbler/followers","following_url":"https://api.github.com/users/mrscobbler/following{/other_user}","gists_url":"https://api.github.com/users/mrscobbler/gists{/gist_id}","starred_url":"https://api.github.com/users/mrscobbler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrscobbler/subscriptions","organizations_url":"https://api.github.com/users/mrscobbler/orgs","repos_url":"https://api.github.com/users/mrscobbler/repos","events_url":"https://api.github.com/users/mrscobbler/events{/privacy}","received_events_url":"https://api.github.com/users/mrscobbler/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-31T17:08:23Z","updated_at":"2016-08-31T17:17:42Z","closed_at":null,"body":"I'm using arrow function for refs as explained in the docs here: https://facebook.github.io/react/docs/more-about-refs.html \r\n\r\nbut the linter complains with this: \r\n\r\n`217:54  warning  Arrow function should not return assignment`\r\n\r\nIs there an issue with the way the docs describe how to use arrow functions with refs? Should the docs be updated?"},"comment":{"url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/comments/243835304","html_url":"https://github.com/facebookincubator/create-react-app/issues/528#issuecomment-243835304","issue_url":"https://api.github.com/repos/facebookincubator/create-react-app/issues/528","id":243835304,"user":{"login":"vjeux","id":197597,"avatar_url":"https://avatars.githubusercontent.com/u/197597?v=3","gravatar_id":"","url":"https://api.github.com/users/vjeux","html_url":"https://github.com/vjeux","followers_url":"https://api.github.com/users/vjeux/followers","following_url":"https://api.github.com/users/vjeux/following{/other_user}","gists_url":"https://api.github.com/users/vjeux/gists{/gist_id}","starred_url":"https://api.github.com/users/vjeux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vjeux/subscriptions","organizations_url":"https://api.github.com/users/vjeux/orgs","repos_url":"https://api.github.com/users/vjeux/repos","events_url":"https://api.github.com/users/vjeux/events{/privacy}","received_events_url":"https://api.github.com/users/vjeux/received_events","type":"User","site_admin":false},"created_at":"2016-08-31T17:17:42Z","updated_at":"2016-08-31T17:17:42Z","body":"You are probably writing\r\n\r\n```js\r\n<TextInput ref={(c) => this._input = c} />\r\n```\r\n\r\nif you add `{}` around the function body it should remove the warning:\r\n\r\n```js\r\n<TextInput ref={(c) => { this._input = c; }} />\r\n```"}}
{"actor":{"display_login":"vjeux"}}