(maybeReactComponent: any)
| 12 | * Determines if the given object has the signature of a class that inherits React.Component. |
| 13 | */ |
| 14 | const isReactComponent = (maybeReactComponent: any): boolean => { |
| 15 | return 'prototype' in maybeReactComponent && _.isFunction(maybeReactComponent.prototype.render); |
| 16 | }; |
| 17 | |
| 18 | /** |
| 19 | * When used as a function. |
no outgoing calls
no test coverage detected