diff --git a/src/utils.js b/src/utils.js index 2b5a313..5c4f306 100644 --- a/src/utils.js +++ b/src/utils.js @@ -218,7 +218,7 @@ function normalizeComponent (Comp, params = {}, fallback = Comp) { function isClassComponent (component) { return !!(( typeof component === 'function' && - !!component.prototype.isReactComponent + !!Object.getPrototypeOf(component).isReactComponent )) }