bolt.new/app/utils/react.ts
Dustin Loring e2c3cef343 chore: lint fix
ran pnpm lint fix and fixed warnings
2025-01-18 08:09:50 -05:00

8 lines
271 B
TypeScript

import type { ComponentProps, ComponentType } from 'react';
import { memo } from 'react';
export const genericMemo: <T extends ComponentType<any>>(
Component: T,
propsAreEqual?: (prevProps: ComponentProps<T>, nextProps: ComponentProps<T>) => boolean,
) => T = memo;