Spaces:
Running
Running
Download src/components/Markdown.ts from matthoffner/web-llm-embed: direct link, hf CLI and curl.
- Browser
- Download file 258 Bytes
-
https://huggingface.co/spaces/matthoffner/web-llm-embed/resolve/main/src/components/Markdown.ts
- Command line
-
hf download hf://spaces/matthoffner/web-llm-embed/src/components/Markdown.ts
-
curl -L -o Markdown.ts https://huggingface.co/spaces/matthoffner/web-llm-embed/resolve/main/src/components/Markdown.ts
258 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 | |
| ) | |
| ); | |