diff --git a/src/core/ReactLegacyDescriptor.js b/src/core/ReactLegacyDescriptor.js index ff882723b4..b4ce4883b3 100644 --- a/src/core/ReactLegacyDescriptor.js +++ b/src/core/ReactLegacyDescriptor.js @@ -49,6 +49,7 @@ function warnForLegacyFactoryCall() { function warnForPlainFunctionType(type) { var isReactClass = + type.prototype && typeof type.prototype.mountComponent === 'function' && typeof type.prototype.receiveComponent === 'function'; if (isReactClass) {