import { isClassComponent } from './isClassComponent' ; import { isMemoComponent } from './isMemoComponent' ; import { isForwardRefComponent } from './isForwardRefComponent' ; import { ReactSymbol } from './symbols' ; export const shouldTrack = ( component ) : component is React . ElementType < React . ComponentClass | React . FunctionComponent > & { $$typeof : ReactSymbol ; } => isClassComponent ( component ) || isMemoComponent ( component ) || isForwardRefComponent ( component ) || typeof component === 'function' ;