{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react/issues/3478","labels_url":"https://api.github.com/repos/facebook/react/issues/3478/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react/issues/3478/comments","events_url":"https://api.github.com/repos/facebook/react/issues/3478/events","html_url":"https://github.com/facebook/react/issues/3478","id":63529372,"number":3478,"title":"Confusing error message when passing non string, non component class to React.createElement","user":{"login":"andreypopp","id":30594,"avatar_url":"https://avatars.githubusercontent.com/u/30594?v=3","gravatar_id":"","url":"https://api.github.com/users/andreypopp","html_url":"https://github.com/andreypopp","followers_url":"https://api.github.com/users/andreypopp/followers","following_url":"https://api.github.com/users/andreypopp/following{/other_user}","gists_url":"https://api.github.com/users/andreypopp/gists{/gist_id}","starred_url":"https://api.github.com/users/andreypopp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreypopp/subscriptions","organizations_url":"https://api.github.com/users/andreypopp/orgs","repos_url":"https://api.github.com/users/andreypopp/repos","events_url":"https://api.github.com/users/andreypopp/events{/privacy}","received_events_url":"https://api.github.com/users/andreypopp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/react/labels/good%20first%20bug","name":"good first bug","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-22T12:51:48Z","updated_at":"2015-03-24T20:55:56Z","closed_at":null,"body":"The following code:\r\n```\r\nvar X = true;\r\nvar Hello = React.createClass({\r\n    render: function() {\r\n        return <X>Hello {this.props.name}</X>;\r\n    }\r\n});\r\n```\r\nproduces\r\n```\r\nUncaught TypeError: undefined is not a function\r\n```\r\ndeep into React.\r\n\r\nhttp://jsfiddle.net/92env5pj/1/"},"comment":{"url":"https://api.github.com/repos/facebook/react/issues/comments/85687788","html_url":"https://github.com/facebook/react/issues/3478#issuecomment-85687788","issue_url":"https://api.github.com/repos/facebook/react/issues/3478","id":85687788,"user":{"login":"spicyj","id":6820,"avatar_url":"https://avatars.githubusercontent.com/u/6820?v=3","gravatar_id":"","url":"https://api.github.com/users/spicyj","html_url":"https://github.com/spicyj","followers_url":"https://api.github.com/users/spicyj/followers","following_url":"https://api.github.com/users/spicyj/following{/other_user}","gists_url":"https://api.github.com/users/spicyj/gists{/gist_id}","starred_url":"https://api.github.com/users/spicyj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spicyj/subscriptions","organizations_url":"https://api.github.com/users/spicyj/orgs","repos_url":"https://api.github.com/users/spicyj/repos","events_url":"https://api.github.com/users/spicyj/events{/privacy}","received_events_url":"https://api.github.com/users/spicyj/received_events","type":"User","site_admin":false},"created_at":"2015-03-24T20:55:56Z","updated_at":"2015-03-24T20:55:56Z","body":"No objects, just functions that return objects with a render function. I thought we had a warning for this already though."}}