diff --git a/ui/component/common/markdown-preview.jsx b/ui/component/common/markdown-preview.jsx index ccb12edd4..59cc21ee5 100644 --- a/ui/component/common/markdown-preview.jsx +++ b/ui/component/common/markdown-preview.jsx @@ -143,7 +143,7 @@ const REPLACE_REGEX = /(<\/iframe>)/g; // **************************************************************************** // **************************************************************************** -const MarkdownPreview = (props: MarkdownProps) => { +export default React.memo(function MarkdownPreview(props: MarkdownProps) { const { content, strip, @@ -255,6 +255,4 @@ const MarkdownPreview = (props: MarkdownProps) => { } ); -}; - -export default MarkdownPreview; +});