{"action":"created","issue":{"url":"https://api.github.com/repos/reactrb/reactrb/issues/103","repository_url":"https://api.github.com/repos/reactrb/reactrb","labels_url":"https://api.github.com/repos/reactrb/reactrb/issues/103/labels{/name}","comments_url":"https://api.github.com/repos/reactrb/reactrb/issues/103/comments","events_url":"https://api.github.com/repos/reactrb/reactrb/issues/103/events","html_url":"https://github.com/reactrb/reactrb/issues/103","id":159948328,"number":103,"title":"Intelligently accept React::Elements","user":{"login":"sollycatprint","id":8051004,"avatar_url":"https://avatars.githubusercontent.com/u/8051004?v=3","gravatar_id":"","url":"https://api.github.com/users/sollycatprint","html_url":"https://github.com/sollycatprint","followers_url":"https://api.github.com/users/sollycatprint/followers","following_url":"https://api.github.com/users/sollycatprint/following{/other_user}","gists_url":"https://api.github.com/users/sollycatprint/gists{/gist_id}","starred_url":"https://api.github.com/users/sollycatprint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sollycatprint/subscriptions","organizations_url":"https://api.github.com/users/sollycatprint/orgs","repos_url":"https://api.github.com/users/sollycatprint/repos","events_url":"https://api.github.com/users/sollycatprint/events{/privacy}","received_events_url":"https://api.github.com/users/sollycatprint/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/reactrb/reactrb/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-13T13:19:54Z","updated_at":"2016-06-13T13:19:55Z","closed_at":null,"body":"_From @catmando on December 15, 2015 2:47_\n\ngiven this:\r\n\r\n```ruby\r\nclass MyComponent < React::Component::Base\r\n  param :foo type: React::Element\r\n  ...\r\nend\r\n```\r\n\r\nwe should then be able to say\r\n\r\n`MyComponent(div { \"hello\"})` instead of `MyComponent(div {\"hello\"}.as_node)`\r\n\r\nThis may not be easily implementable but it sure would be nice.  I'm just not sure if apply as_node inside of another components' validator will work, because by that time we may not know the rendering context.\r\n\r\nFurthermore if the param is any other type that responds to `to_s`  we should automatically convert it (by doing a `.to_s.span`)  This we can easily do.  \n\n_Copied from original issue: zetachang/react.rb#103_"},"comment":{"url":"https://api.github.com/repos/reactrb/reactrb/issues/comments/225578147","html_url":"https://github.com/reactrb/reactrb/issues/103#issuecomment-225578147","issue_url":"https://api.github.com/repos/reactrb/reactrb/issues/103","id":225578147,"user":{"login":"sollycatprint","id":8051004,"avatar_url":"https://avatars.githubusercontent.com/u/8051004?v=3","gravatar_id":"","url":"https://api.github.com/users/sollycatprint","html_url":"https://github.com/sollycatprint","followers_url":"https://api.github.com/users/sollycatprint/followers","following_url":"https://api.github.com/users/sollycatprint/following{/other_user}","gists_url":"https://api.github.com/users/sollycatprint/gists{/gist_id}","starred_url":"https://api.github.com/users/sollycatprint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sollycatprint/subscriptions","organizations_url":"https://api.github.com/users/sollycatprint/orgs","repos_url":"https://api.github.com/users/sollycatprint/repos","events_url":"https://api.github.com/users/sollycatprint/events{/privacy}","received_events_url":"https://api.github.com/users/sollycatprint/received_events","type":"User","site_admin":false},"created_at":"2016-06-13T13:19:54Z","updated_at":"2016-06-13T13:19:54Z","body":"_From @catmando on December 20, 2015 21:5_\n\nLooks like we are sort of already doing this in 0.7... any Elements passed to other other elements are automatically removed from the rendering buffer."}}
{"actor":{"display_login":"sollycatprint"}}