init
This commit is contained in:
commit
a04776256d
56 changed files with 6808 additions and 0 deletions
9
app/markdown.tsx
Normal file
9
app/markdown.tsx
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
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
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue