Skip to content

Commit

Permalink
Check whether it has a prototype in isStateless
Browse files Browse the repository at this point in the history
This fixes erikras#290 for me locally
  • Loading branch information
buob committed Aug 28, 2019
1 parent 95aba30 commit 6dbc267
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const isStateLess = Component => !Component.prototype.render
export const isStateLess = Component => !Component.prototype || !Component.prototype.render

0 comments on commit 6dbc267

Please sign in to comment.