{"action":"created","issue":{"url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/525","repository_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react","labels_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/525/labels{/name}","comments_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/525/comments","events_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/525/events","html_url":"https://github.com/yannickcr/eslint-plugin-react/issues/525","id":145210622,"number":525,"title":"[prefer-stateless-function] should check this.props.children is used or not","user":{"login":"J-F-Liu","id":1472963,"avatar_url":"https://avatars.githubusercontent.com/u/1472963?v=3","gravatar_id":"","url":"https://api.github.com/users/J-F-Liu","html_url":"https://github.com/J-F-Liu","followers_url":"https://api.github.com/users/J-F-Liu/followers","following_url":"https://api.github.com/users/J-F-Liu/following{/other_user}","gists_url":"https://api.github.com/users/J-F-Liu/gists{/gist_id}","starred_url":"https://api.github.com/users/J-F-Liu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/J-F-Liu/subscriptions","organizations_url":"https://api.github.com/users/J-F-Liu/orgs","repos_url":"https://api.github.com/users/J-F-Liu/repos","events_url":"https://api.github.com/users/J-F-Liu/events{/privacy}","received_events_url":"https://api.github.com/users/J-F-Liu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-01T15:29:56Z","updated_at":"2016-04-01T15:57:25Z","closed_at":null,"body":"For example:\r\n```\r\nexport default class Layout extends Component {\r\n  render() {\r\n    return (\r\n    <div>\r\n      <h1>\r\n        {App.pieces.map((piece, i) => <Piece key={i} {...piece} />).insertSeparator('+')}\r\n      </h1>\r\n      <p>\r\n        {this.props.children}\r\n      </p>\r\n    </div>);\r\n  }\r\n}\r\n```\r\ncannot be written as a pure function."},"comment":{"url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/comments/204448889","html_url":"https://github.com/yannickcr/eslint-plugin-react/issues/525#issuecomment-204448889","issue_url":"https://api.github.com/repos/yannickcr/eslint-plugin-react/issues/525","id":204448889,"user":{"login":"ljharb","id":45469,"avatar_url":"https://avatars.githubusercontent.com/u/45469?v=3","gravatar_id":"","url":"https://api.github.com/users/ljharb","html_url":"https://github.com/ljharb","followers_url":"https://api.github.com/users/ljharb/followers","following_url":"https://api.github.com/users/ljharb/following{/other_user}","gists_url":"https://api.github.com/users/ljharb/gists{/gist_id}","starred_url":"https://api.github.com/users/ljharb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ljharb/subscriptions","organizations_url":"https://api.github.com/users/ljharb/orgs","repos_url":"https://api.github.com/users/ljharb/repos","events_url":"https://api.github.com/users/ljharb/events{/privacy}","received_events_url":"https://api.github.com/users/ljharb/received_events","type":"User","site_admin":false},"created_at":"2016-04-01T15:57:25Z","updated_at":"2016-04-01T15:57:25Z","body":"Why not? SFCs can have and use children."}}