{"action":"opened","issue":{"url":"https://api.github.com/repos/ruanyf/react-demos/issues/8","labels_url":"https://api.github.com/repos/ruanyf/react-demos/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/ruanyf/react-demos/issues/8/comments","events_url":"https://api.github.com/repos/ruanyf/react-demos/issues/8/events","html_url":"https://github.com/ruanyf/react-demos/issues/8","id":115717034,"number":8,"title":"React.Children.map ","user":{"login":"cwtuan","id":3455798,"avatar_url":"https://avatars.githubusercontent.com/u/3455798?v=3","gravatar_id":"","url":"https://api.github.com/users/cwtuan","html_url":"https://github.com/cwtuan","followers_url":"https://api.github.com/users/cwtuan/followers","following_url":"https://api.github.com/users/cwtuan/following{/other_user}","gists_url":"https://api.github.com/users/cwtuan/gists{/gist_id}","starred_url":"https://api.github.com/users/cwtuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cwtuan/subscriptions","organizations_url":"https://api.github.com/users/cwtuan/orgs","repos_url":"https://api.github.com/users/cwtuan/repos","events_url":"https://api.github.com/users/cwtuan/events{/privacy}","received_events_url":"https://api.github.com/users/cwtuan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-08T08:02:10Z","updated_at":"2015-11-08T08:02:10Z","closed_at":null,"body":"In Demo05, you mentioned,\r\n```\r\nPlease be minded that only if the component has more than one child node,\r\nyou could take this.props.children as an array, \r\notherwise this.props.children.map throws a TypeError.\r\n```\r\nIt would be nice if you remind reader that there's a  function called React.Children.map which can deal with this problem well.\r\n\r\nMore info https://facebook.github.io/react/docs/top-level-api.html#react.children"}}