Skip to content

Commit 9fae263

Browse files
committed
Function starts is[A-Z], parameter must be maybe[A-Z].
1 parent 5aac6f8 commit 9fae263

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ let decoratorConstructor,
1212
* @param {*} Component
1313
* @returns {boolean}
1414
*/
15-
isReactComponent = (Component) => {
16-
return 'prototype' in Component && _.isFunction(Component.prototype.render);
15+
isReactComponent = (maybeReactComponent) => {
16+
return 'prototype' in maybeReactComponent && _.isFunction(maybeReactComponent.prototype.render);
1717
};
1818

1919
/**

0 commit comments

Comments
 (0)