Skip to content

Commit 6dbc267

Browse files
committed
Check whether it has a prototype in isStateless
This fixes erikras#290 for me locally
1 parent 95aba30 commit 6dbc267

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const isStateLess = Component => !Component.prototype.render
1+
export const isStateLess = Component => !Component.prototype || !Component.prototype.render

0 commit comments

Comments
 (0)