From 5875f80089b2b338e0e4e28d8ff46a6a49bf5922 Mon Sep 17 00:00:00 2001 From: Dan Ott Date: Fri, 6 Sep 2019 12:58:41 -0400 Subject: [PATCH] use getPrototypeOf instead of .prototype (#1503) --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 )) }