{"action":"created","issue":{"url":"https://api.github.com/repos/swannodette/om/issues/314","labels_url":"https://api.github.com/repos/swannodette/om/issues/314/labels{/name}","comments_url":"https://api.github.com/repos/swannodette/om/issues/314/comments","events_url":"https://api.github.com/repos/swannodette/om/issues/314/events","html_url":"https://github.com/swannodette/om/issues/314","id":54521379,"number":314,"title":"ReactNode & React NodeLists","user":{"login":"JulianLeviston","id":5661934,"avatar_url":"https://avatars.githubusercontent.com/u/5661934?v=3","gravatar_id":"","url":"https://api.github.com/users/JulianLeviston","html_url":"https://github.com/JulianLeviston","followers_url":"https://api.github.com/users/JulianLeviston/followers","following_url":"https://api.github.com/users/JulianLeviston/following{/other_user}","gists_url":"https://api.github.com/users/JulianLeviston/gists{/gist_id}","starred_url":"https://api.github.com/users/JulianLeviston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JulianLeviston/subscriptions","organizations_url":"https://api.github.com/users/JulianLeviston/orgs","repos_url":"https://api.github.com/users/JulianLeviston/repos","events_url":"https://api.github.com/users/JulianLeviston/events{/privacy}","received_events_url":"https://api.github.com/users/JulianLeviston/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-15T23:42:48Z","updated_at":"2015-01-27T13:43:54Z","closed_at":"2015-01-27T13:43:54Z","body":"React has the capacity to create a function that has more than one ReactNode as its output, but Om does not seem to (apologies if this is just my lack of education). This has caused issues for me where I end up adding many divs into the output, changing the HTML structure, and causing my designer issue as his CSS needs to be adjusted.\r\n\r\nIn other words, React can produce a function whose output is `<p>hi</p><p>there</p>`. When React users use JSX, they implicitly create these NodeList objects by the form of their template. In Om, however, we explicitly create the elements we use.\r\n\r\nAn excellent explanation of React NodesLists is in a glossary under \"Nodes and Elements\", in https://github.com/facebook/react/blob/26636e501db170d0a8ad1cf44d61216e439df645/docs/docs/ref-09-glossary.md\r\n\r\nWould it be possible to expose the React NodeList to Om users as a function such that we could create components that output these?"},"comment":{"url":"https://api.github.com/repos/swannodette/om/issues/comments/71649167","html_url":"https://github.com/swannodette/om/issues/314#issuecomment-71649167","issue_url":"https://api.github.com/repos/swannodette/om/issues/314","id":71649167,"user":{"login":"swannodette","id":13516,"avatar_url":"https://avatars.githubusercontent.com/u/13516?v=3","gravatar_id":"","url":"https://api.github.com/users/swannodette","html_url":"https://github.com/swannodette","followers_url":"https://api.github.com/users/swannodette/followers","following_url":"https://api.github.com/users/swannodette/following{/other_user}","gists_url":"https://api.github.com/users/swannodette/gists{/gist_id}","starred_url":"https://api.github.com/users/swannodette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swannodette/subscriptions","organizations_url":"https://api.github.com/users/swannodette/orgs","repos_url":"https://api.github.com/users/swannodette/repos","events_url":"https://api.github.com/users/swannodette/events{/privacy}","received_events_url":"https://api.github.com/users/swannodette/received_events","type":"User","site_admin":false},"created_at":"2015-01-27T13:43:54Z","updated_at":"2015-01-27T13:43:54Z","body":"@JulianLeviston it's not clear that such a public thing exists and I'm not going to look into internals to determine how this was accomplished for JSX. Closing this until there's a way to do this through official or at least stable entry points."}}