{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react/issues/5766","labels_url":"https://api.github.com/repos/facebook/react/issues/5766/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react/issues/5766/comments","events_url":"https://api.github.com/repos/facebook/react/issues/5766/events","html_url":"https://github.com/facebook/react/issues/5766","id":124559129,"number":5766,"title":"External JSX files are not executed synchronously","user":{"login":"ickata","id":617081,"avatar_url":"https://avatars.githubusercontent.com/u/617081?v=3","gravatar_id":"","url":"https://api.github.com/users/ickata","html_url":"https://github.com/ickata","followers_url":"https://api.github.com/users/ickata/followers","following_url":"https://api.github.com/users/ickata/following{/other_user}","gists_url":"https://api.github.com/users/ickata/gists{/gist_id}","starred_url":"https://api.github.com/users/ickata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ickata/subscriptions","organizations_url":"https://api.github.com/users/ickata/orgs","repos_url":"https://api.github.com/users/ickata/repos","events_url":"https://api.github.com/users/ickata/events{/privacy}","received_events_url":"https://api.github.com/users/ickata/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-01T19:56:30Z","updated_at":"2016-01-02T17:33:14Z","closed_at":null,"body":"I have the following code:\r\n\r\n```html\r\n<script type=\"text/babel\" src=\"/JSX/App.jsx\"></script>\r\n<script type=\"text/babel\">\r\nReactDOM.render( <App model={'/data'}/>, document.body );\r\n</script>\r\n```\r\n\r\nAn it is throwing an error that App component is not defined. It seems that the inline script below is executed before the external App.jsx file is loaded.\r\n\r\nThis, however, used to work in 0.13.*:\r\n\r\n```html\r\n<script type=\"text/jsx\" src=\"/JSX/App.jsx\"></script>\r\n<script type=\"text/jsx\">\r\nReact.render( <App model={'/data'}/>, document.body );\r\n</script>\r\n```"},"comment":{"url":"https://api.github.com/repos/facebook/react/issues/comments/168411190","html_url":"https://github.com/facebook/react/issues/5766#issuecomment-168411190","issue_url":"https://api.github.com/repos/facebook/react/issues/5766","id":168411190,"user":{"login":"rickbeerendonk","id":479223,"avatar_url":"https://avatars.githubusercontent.com/u/479223?v=3","gravatar_id":"","url":"https://api.github.com/users/rickbeerendonk","html_url":"https://github.com/rickbeerendonk","followers_url":"https://api.github.com/users/rickbeerendonk/followers","following_url":"https://api.github.com/users/rickbeerendonk/following{/other_user}","gists_url":"https://api.github.com/users/rickbeerendonk/gists{/gist_id}","starred_url":"https://api.github.com/users/rickbeerendonk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rickbeerendonk/subscriptions","organizations_url":"https://api.github.com/users/rickbeerendonk/orgs","repos_url":"https://api.github.com/users/rickbeerendonk/repos","events_url":"https://api.github.com/users/rickbeerendonk/events{/privacy}","received_events_url":"https://api.github.com/users/rickbeerendonk/received_events","type":"User","site_admin":false},"created_at":"2016-01-02T17:33:14Z","updated_at":"2016-01-02T17:33:14Z","body":"You use Babel in the first example. What do you use in the 2nd example to transpile the JSX? Both are at least different, isn't that an explanation for your problem?"}}