react-performance-testing
Version:
You can test React(ReactNative) runtime performance by using this lib. If you want to check the number of renders, or render time in a test environment, this lib makes sense.
10 lines • 422 B
TypeScript
/// <reference types="react" />
import { ReactSymbol } from './symbols';
export declare const isMemoComponent: (Component: React.ElementType<React.ComponentClass | React.FunctionComponent> & {
$$typeof: ReactSymbol;
}) => Component is import("react").NamedExoticComponent<any> & {
readonly type: any;
} & {
compare: (state: any, props: any) => boolean;
};
//# sourceMappingURL=isMemoComponent.d.ts.map