Download app/utils/react.ts from kloudux/kodex: direct link, hf CLI and curl.
- Browser
- Download file 300 Bytes
-
https://huggingface.co/spaces/kloudux/kodex/resolve/main/app/utils/react.ts
- Command line
-
hf download hf://spaces/kloudux/kodex/app/utils/react.ts
-
curl -L -o react.ts https://huggingface.co/spaces/kloudux/kodex/resolve/main/app/utils/react.ts
300 Bytes
| 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; | |