The component to memoize.
Optional propsAreEqual: ((prevProps, nextProps) => boolean)A function that will be used to determine if the props have changed.
import { memo } from 'react';
const SomeComponent = memo(function SomeComponent(props: { foo: string }) {
// ...
});
Optional propsAreEqual: ((prevProps, nextProps) => boolean)
Lets you skip re-rendering a component when its props are unchanged.