We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5aac6f8 commit 9fae263Copy full SHA for 9fae263
src/index.js
@@ -12,8 +12,8 @@ let decoratorConstructor,
12
* @param {*} Component
13
* @returns {boolean}
14
*/
15
-isReactComponent = (Component) => {
16
- return 'prototype' in Component && _.isFunction(Component.prototype.render);
+isReactComponent = (maybeReactComponent) => {
+ return 'prototype' in maybeReactComponent && _.isFunction(maybeReactComponent.prototype.render);
17
};
18
19
/**
0 commit comments