Download src/components/markdown.tsx from hanmingmo/bingo: direct link, hf CLI and curl.
- Browser
- Download file 290 Bytes
-
https://huggingface.co/spaces/hanmingmo/bingo/resolve/main/src/components/markdown.tsx
- Command line
-
hf download hf://spaces/hanmingmo/bingo/src/components/markdown.tsx
-
curl -L -o markdown.tsx https://huggingface.co/spaces/hanmingmo/bingo/resolve/main/src/components/markdown.tsx
290 Bytes
| import { FC, memo } from 'react' | |
| import ReactMarkdown, { Options } from 'react-markdown' | |
| export const MemoizedReactMarkdown: FC<Options> = memo( | |
| ReactMarkdown, | |
| (prevProps, nextProps) => | |
| prevProps.children === nextProps.children && | |
| prevProps.className === nextProps.className | |
| ) | |