fix: remove monorepo
This commit is contained in:
6
app/utils/react.ts
Normal file
6
app/utils/react.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { memo } from 'react';
|
||||
|
||||
export const genericMemo: <T extends keyof JSX.IntrinsicElements | React.JSXElementConstructor<any>>(
|
||||
component: T,
|
||||
propsAreEqual?: (prevProps: React.ComponentProps<T>, nextProps: React.ComponentProps<T>) => boolean,
|
||||
) => T & { displayName?: string } = memo;
|
||||
Reference in New Issue
Block a user