@gechiui/compose
Version:
GeChiUI higher-order components (HOCs).
11 lines • 377 B
TypeScript
/**
* External dependencies
*/
import type { ComponentType } from 'react';
/**
* Given a component returns the enhanced component augmented with a component
* only re-rendering when its props/state change
*/
declare const pure: <InnerProps extends {}>(Inner: ComponentType<InnerProps>) => ComponentType<InnerProps>;
export default pure;
//# sourceMappingURL=index.d.ts.map