Move out setupDevtools call from renderApplication function

Reviewed By: frantic

Differential Revision: D2600393

fb-gh-sync-id: edac2fa3281314fb02a0951c342c2c1ae9b0441a
This commit is contained in:
Pawel Sienkowski
2015-11-02 15:34:28 -08:00
committed by facebook-github-bot-6
parent 63c4d07187
commit 7021918fe5
2 changed files with 8 additions and 5 deletions

View File

@@ -69,11 +69,6 @@ function renderApplication<D, P, S>(
rootTag,
'Expect to have a valid rootTag, instead got ', rootTag
);
// not when debugging in chrome
if (__DEV__ && !window.document) {
var setupDevtools = require('setupDevtools');
setupDevtools();
}
React.render(
<AppContainer rootTag={rootTag}>
<RootComponent