import { REACT_MEMO_TYPE } from '../shared/ReactSymbols' ; import { ReactElement } from '../shared/ReactTypes' ; export const memo = < Props > ( type , compare ? ) : any => { const elementType = { $$typeof : REACT_MEMO_TYPE , type , compare : compare === undefined ? null : compare , } ; return elementType ; } ;