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