diff --git a/src/browser/ui/React.js b/src/browser/ui/React.js index 6c25411f6b..9227410d9d 100644 --- a/src/browser/ui/React.js +++ b/src/browser/ui/React.js @@ -34,6 +34,7 @@ var ReactServerRendering = require('ReactServerRendering'); var assign = require('Object.assign'); var findDOMNode = require('findDOMNode'); var onlyChild = require('onlyChild'); +var warning = require('warning'); ReactDefaultInjection.inject(); @@ -115,13 +116,14 @@ if (__DEV__) { // If we're in IE8, check to see if we are in combatibility mode and provide // information on preventing compatibility mode - if (document.documentMode && document.documentMode < 8) { - console.debug( - 'Internet Explorer is running in compatibility mode, please add the following ' + - 'tag to your HTML to prevent this from happening: ' + - '' - ); - } + var ieCompatibilityMode = document.documentMode && document.documentMode < 8; + + warning( + !ieCompatibilityMode, + 'Internet Explorer is running in compatibility mode, please add the following ' + + 'tag to your HTML to prevent this from happening: ' + + '' + ); var expectedFeatures = [ // shims