5d4afba
1
2
3
4
5
6
7
8
9
10
import { FC, memo } from "react"; import { ChatMessage, Props } from "./ChatMessage"; export const MemoizedChatMessage: FC<Props> = memo( ChatMessage, (prevProps, nextProps) => ( prevProps.message.content === nextProps.message.content ) );