{"action":"created","issue":{"url":"https://api.github.com/repos/thomasboyt/react/issues/10","labels_url":"https://api.github.com/repos/thomasboyt/react/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/thomasboyt/react/issues/10/comments","events_url":"https://api.github.com/repos/thomasboyt/react/issues/10/events","html_url":"https://github.com/thomasboyt/react/issues/10","id":84775132,"number":10,"title":"Experiment: try letting CompositeComponent have an array of _renderedComponents","user":{"login":"thomasboyt","id":579628,"avatar_url":"https://avatars.githubusercontent.com/u/579628?v=3","gravatar_id":"","url":"https://api.github.com/users/thomasboyt","html_url":"https://github.com/thomasboyt","followers_url":"https://api.github.com/users/thomasboyt/followers","following_url":"https://api.github.com/users/thomasboyt/following{/other_user}","gists_url":"https://api.github.com/users/thomasboyt/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasboyt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasboyt/subscriptions","organizations_url":"https://api.github.com/users/thomasboyt/orgs","repos_url":"https://api.github.com/users/thomasboyt/repos","events_url":"https://api.github.com/users/thomasboyt/events{/privacy}","received_events_url":"https://api.github.com/users/thomasboyt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-03T21:18:45Z","updated_at":"2015-06-03T22:00:25Z","closed_at":null,"body":"I'm concerned that the whole `ReactDOMFragment` idea was bad from the start, given the trouble I've had figuring out how to store and update the state of nodeCounts/Indexes. This won't solve #7, of course, but would at least make it easier to make a simple \"child -> parent\" lookup without going through the mess that is ReactDOMFragment...\r\n\r\nThe main difficulty here would then be turning\r\n\r\n```\r\n<Component>\r\n  <frag>\r\n    <li>foo</li>\r\n    <li>bar</li>\r\n  </frag>\r\n</Component>\r\n```\r\n\r\ninto:\r\n\r\n```\r\n<Component>\r\n  <li>foo</li>\r\n  <li>bar</li>\r\n</Component>\r\n```\r\n\r\nI wonder if making [frag turn into an array under the hood](https://github.com/thomasboyt/react/commit/7c1c6f46c90734f1c2f668da22e541e9fa06746e) would be the best way to do it...\r\n\r\nOh, and I guess this would mean `CompositeComponent` now also has to be a `ReactMultiChild`-using component. That could be... interesting..."},"comment":{"url":"https://api.github.com/repos/thomasboyt/react/issues/comments/108627650","html_url":"https://github.com/thomasboyt/react/issues/10#issuecomment-108627650","issue_url":"https://api.github.com/repos/thomasboyt/react/issues/10","id":108627650,"user":{"login":"thomasboyt","id":579628,"avatar_url":"https://avatars.githubusercontent.com/u/579628?v=3","gravatar_id":"","url":"https://api.github.com/users/thomasboyt","html_url":"https://github.com/thomasboyt","followers_url":"https://api.github.com/users/thomasboyt/followers","following_url":"https://api.github.com/users/thomasboyt/following{/other_user}","gists_url":"https://api.github.com/users/thomasboyt/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasboyt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasboyt/subscriptions","organizations_url":"https://api.github.com/users/thomasboyt/orgs","repos_url":"https://api.github.com/users/thomasboyt/repos","events_url":"https://api.github.com/users/thomasboyt/events{/privacy}","received_events_url":"https://api.github.com/users/thomasboyt/received_events","type":"User","site_admin":false},"created_at":"2015-06-03T22:00:25Z","updated_at":"2015-06-03T22:00:25Z","body":"If fragments are flattened into children, the way root nodes work will need to be overhauled to support multiple nodes. Right now this:\r\n\r\n```\r\n<Component>\r\n  <frag>\r\n    <li>foo</li>\r\n  </frag>\r\n  <frag>\r\n    <li>bar</li>\r\n  </frag>\r\n  <li>baz</li>\r\n</Component>\r\n```\r\n\r\nends up as:\r\n\r\n```\r\n<Component id=\".0\">\r\n  <li id=\".0.0\">foo</li>\r\n  <li id=\".0.0\">bar</li>\r\n  <li id=\".0.2\">bar</li>\r\n</Component>\r\n```"}}