bingo-silver / src /components /markdown.tsx
SilverStarShadow's picture
Duplicate from hf4all/bingo
15bfa8d
raw
history blame contribute delete
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
)