From 8493067c1104b87ad3fca9517901888f3288ad0e Mon Sep 17 00:00:00 2001 From: Jake Buob Date: Wed, 28 Aug 2019 10:55:08 -0500 Subject: [PATCH] Check whether it has a prototype in `isStateless` This fixes #290 for me locally --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index 5d3084d..790268e 100644 --- a/src/utils.js +++ b/src/utils.js @@ -1 +1 @@ -export const isStateLess = Component => !Component.prototype.render +export const isStateLess = Component => !Component.prototype || !Component.prototype.render