{"action":"created","issue":{"url":"https://api.github.com/repos/reactjs/React.NET/issues/186","labels_url":"https://api.github.com/repos/reactjs/React.NET/issues/186/labels{/name}","comments_url":"https://api.github.com/repos/reactjs/React.NET/issues/186/comments","events_url":"https://api.github.com/repos/reactjs/React.NET/issues/186/events","html_url":"https://github.com/reactjs/React.NET/issues/186","id":115497945,"number":186,"title":"ReactDOM is not defined server side by default","user":{"login":"SoonDead","id":988167,"avatar_url":"https://avatars.githubusercontent.com/u/988167?v=3","gravatar_id":"","url":"https://api.github.com/users/SoonDead","html_url":"https://github.com/SoonDead","followers_url":"https://api.github.com/users/SoonDead/followers","following_url":"https://api.github.com/users/SoonDead/following{/other_user}","gists_url":"https://api.github.com/users/SoonDead/gists{/gist_id}","starred_url":"https://api.github.com/users/SoonDead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SoonDead/subscriptions","organizations_url":"https://api.github.com/users/SoonDead/orgs","repos_url":"https://api.github.com/users/SoonDead/repos","events_url":"https://api.github.com/users/SoonDead/events{/privacy}","received_events_url":"https://api.github.com/users/SoonDead/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-11-06T12:43:49Z","updated_at":"2015-11-07T05:37:45Z","closed_at":null,"body":"I'm using React.NET with Webpack.\r\n\r\nThe internals of my `ReactConfig`:\r\n\r\n    ReactSiteConfiguration.Configuration.SetLoadBabel(false)\r\n        .AddScriptWithoutTransform(\"~/Scripts/build/server.bundle.js\");\r\n\r\nThe server bundle does not contain React. Therefore I put this in my `webpack.config.js`:\r\n\r\n    externals: {\r\n        react: 'React',\r\n        \"react-dom\": 'ReactDOM',\r\n    }\r\n\r\nReactDOM is undefined on the serverside.\r\n\r\nThe workaround will get me fired :(\r\n\r\n    externals: {\r\n        react: 'React',\r\n        \"react-dom\": 'React.__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED',\r\n    }"},"comment":{"url":"https://api.github.com/repos/reactjs/React.NET/issues/comments/154628119","html_url":"https://github.com/reactjs/React.NET/issues/186#issuecomment-154628119","issue_url":"https://api.github.com/repos/reactjs/React.NET/issues/186","id":154628119,"user":{"login":"Daniel15","id":91933,"avatar_url":"https://avatars.githubusercontent.com/u/91933?v=3","gravatar_id":"","url":"https://api.github.com/users/Daniel15","html_url":"https://github.com/Daniel15","followers_url":"https://api.github.com/users/Daniel15/followers","following_url":"https://api.github.com/users/Daniel15/following{/other_user}","gists_url":"https://api.github.com/users/Daniel15/gists{/gist_id}","starred_url":"https://api.github.com/users/Daniel15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Daniel15/subscriptions","organizations_url":"https://api.github.com/users/Daniel15/orgs","repos_url":"https://api.github.com/users/Daniel15/repos","events_url":"https://api.github.com/users/Daniel15/events{/privacy}","received_events_url":"https://api.github.com/users/Daniel15/received_events","type":"User","site_admin":false},"created_at":"2015-11-07T05:37:45Z","updated_at":"2015-11-07T05:37:45Z","body":"To be honest I think your workaround is fine for now, even with the scary `SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED` :laughing: \r\n\r\nI'll probably end up doing something like this in `shims.js`:\r\n```\r\nvar ReactDOM = React.__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\r\n```\r\n\r\nAt which point you could do `'react-dom': 'ReactDOM'`in your Webpack `externals`"}}