mirror of
https://github.com/harivansh-afk/asap.it.git
synced 2026-04-17 20:05:04 +00:00
first commit
This commit is contained in:
commit
1cdbffff09
200 changed files with 30007 additions and 0 deletions
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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue