{"action":"closed","issue":{"url":"https://api.github.com/repos/facebook/react/issues/5050","labels_url":"https://api.github.com/repos/facebook/react/issues/5050/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react/issues/5050/comments","events_url":"https://api.github.com/repos/facebook/react/issues/5050/events","html_url":"https://github.com/facebook/react/issues/5050","id":109693884,"number":5050,"title":"Components should be able to render arrays of nodes","user":{"login":"kmalakoff","id":756520,"avatar_url":"https://avatars.githubusercontent.com/u/756520?v=3","gravatar_id":"","url":"https://api.github.com/users/kmalakoff","html_url":"https://github.com/kmalakoff","followers_url":"https://api.github.com/users/kmalakoff/followers","following_url":"https://api.github.com/users/kmalakoff/following{/other_user}","gists_url":"https://api.github.com/users/kmalakoff/gists{/gist_id}","starred_url":"https://api.github.com/users/kmalakoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmalakoff/subscriptions","organizations_url":"https://api.github.com/users/kmalakoff/orgs","repos_url":"https://api.github.com/users/kmalakoff/repos","events_url":"https://api.github.com/users/kmalakoff/events{/privacy}","received_events_url":"https://api.github.com/users/kmalakoff/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-04T17:55:44Z","updated_at":"2015-10-04T19:57:06Z","closed_at":"2015-10-04T19:57:06Z","body":"Over the last two weeks, I have encountered the problem of wanting to return arrays of nodes during Component rendering:\r\n\r\n1) building a tree - rendering a flat list with the node and children at the same level\r\n2) building table rows - rendering two table rows for one piece of data\r\n\r\nBoth cases were hacky to work arounds since the Component held UI state for the node / children or rows. I am finding that components returning a single node is too limiting as it can lead to head scratching workarounds to try to unroll logic.\r\n\r\nI've read some of the other issues related to this, but I hope these two concrete cases will help you reconsider loosening the component principles of one component to one DOM node since in reality there are cases when this is not the case.\r\n"}}