Move things around

This commit is contained in:
Jared Palmer 2023-05-19 14:31:21 -04:00
parent ccdadbe5b7
commit 54c25f2e24
3 changed files with 2 additions and 2 deletions

9
components/markdown.tsx Normal file
View 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
);