use Object.getPrototypeOf instead of .prototype (#117)

This commit is contained in:
Ryan Palermo
2017-03-08 13:43:29 -05:00
committed by Tanner Linsley
parent bd82468852
commit 10dc68acc1

View File

@@ -193,7 +193,7 @@ function isSortingDesc (d) {
function normalizeComponent (Comp, params = {}, fallback = Comp) {
return typeof Comp === 'function' ? (
Comp.prototype.isReactComponent ? (
Object.getPrototypeOf(Comp).isReactComponent ? (
<Comp
{...params}
/>