(obj: any)
| 53 | } |
| 54 | |
| 55 | export function isReactComponent(obj: any): obj is ComponentType<any> { |
| 56 | if (!obj) { |
| 57 | return false; |
| 58 | } |
| 59 | |
| 60 | return Boolean(isReactClass(obj) || typeof obj === 'function' || isForwardRefType(obj) || isMemoType(obj)); |
| 61 | } |
| 62 | |
| 63 | export function wrapReactClass(view: FunctionComponent) { |
| 64 | let ViewComponentClass = class extends Component { |
no test coverage detected
searching dependent graphs…