(obj: any)
| 6 | export const REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3; |
| 7 | |
| 8 | export function isReactClass(obj: any): obj is ComponentClass<any> { |
| 9 | if (!obj) { |
| 10 | return false; |
| 11 | } |
| 12 | if (obj.prototype && (obj.prototype.isReactComponent || obj.prototype instanceof Component)) { |
| 13 | return true; |
| 14 | } |
| 15 | return false; |
| 16 | } |
| 17 | |
| 18 | export function acceptsRef(obj: any): boolean { |
| 19 | if (!obj) { |
no outgoing calls
no test coverage detected
searching dependent graphs…