From 10dc68acc11ab9024bbeae696fe523fabb12fe00 Mon Sep 17 00:00:00 2001 From: Ryan Palermo Date: Wed, 8 Mar 2017 13:43:29 -0500 Subject: [PATCH] use `Object.getPrototypeOf` instead of `.prototype` (#117) --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index 7c811d5..063e4bd 100644 --- a/src/utils.js +++ b/src/utils.js @@ -193,7 +193,7 @@ function isSortingDesc (d) { function normalizeComponent (Comp, params = {}, fallback = Comp) { return typeof Comp === 'function' ? ( - Comp.prototype.isReactComponent ? ( + Object.getPrototypeOf(Comp).isReactComponent ? (