{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/flow/issues/1559","repository_url":"https://api.github.com/repos/facebook/flow","labels_url":"https://api.github.com/repos/facebook/flow/issues/1559/labels{/name}","comments_url":"https://api.github.com/repos/facebook/flow/issues/1559/comments","events_url":"https://api.github.com/repos/facebook/flow/issues/1559/events","html_url":"https://github.com/facebook/flow/pull/1559","id":142385888,"number":1559,"title":"allow string in React.createElement","user":{"login":"marudor","id":1881725,"avatar_url":"https://avatars.githubusercontent.com/u/1881725?v=3","gravatar_id":"","url":"https://api.github.com/users/marudor","html_url":"https://github.com/marudor","followers_url":"https://api.github.com/users/marudor/followers","following_url":"https://api.github.com/users/marudor/following{/other_user}","gists_url":"https://api.github.com/users/marudor/gists{/gist_id}","starred_url":"https://api.github.com/users/marudor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marudor/subscriptions","organizations_url":"https://api.github.com/users/marudor/orgs","repos_url":"https://api.github.com/users/marudor/repos","events_url":"https://api.github.com/users/marudor/events{/privacy}","received_events_url":"https://api.github.com/users/marudor/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/flow/labels/CLA%20Signed","name":"CLA Signed","color":"eeeeee"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-21T15:35:52Z","updated_at":"2016-03-21T15:46:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/facebook/flow/pulls/1559","html_url":"https://github.com/facebook/flow/pull/1559","diff_url":"https://github.com/facebook/flow/pull/1559.diff","patch_url":"https://github.com/facebook/flow/pull/1559.patch"},"body":"Very simple change. It does allow something like this though:\r\n```javascript\r\nrender() {\r\n    const Cmp = true ? 'div' : Foo; // Foo is a React Component\r\n    return (<Cmp/>);\r\n  }\r\n```\r\nAs JSX is basically React.createElement calls flow should allow strings - just like the documentation says."},"comment":{"url":"https://api.github.com/repos/facebook/flow/issues/comments/199348413","html_url":"https://github.com/facebook/flow/pull/1559#issuecomment-199348413","issue_url":"https://api.github.com/repos/facebook/flow/issues/1559","id":199348413,"user":{"login":"jeffmo","id":498293,"avatar_url":"https://avatars.githubusercontent.com/u/498293?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffmo","html_url":"https://github.com/jeffmo","followers_url":"https://api.github.com/users/jeffmo/followers","following_url":"https://api.github.com/users/jeffmo/following{/other_user}","gists_url":"https://api.github.com/users/jeffmo/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffmo/subscriptions","organizations_url":"https://api.github.com/users/jeffmo/orgs","repos_url":"https://api.github.com/users/jeffmo/repos","events_url":"https://api.github.com/users/jeffmo/events{/privacy}","received_events_url":"https://api.github.com/users/jeffmo/received_events","type":"User","site_admin":false},"created_at":"2016-03-21T15:46:46Z","updated_at":"2016-03-21T15:46:46Z","body":"cc @samwgoldman / @avikchaudhuri -- can you confirm that this shouldn't mess up any of the other React sorcery?\r\n\r\n(travis results still pending, but I'm assuming they should show if any *obvious* problems arise)"}}