react / memo
Lets you skip re-rendering a component when its props are unchanged.
| Type Parameter |
|---|
P extends object |
| Parameter | Type | Description |
|---|---|---|
Component |
FunctionComponent<P> |
The component to memoize. |
propsAreEqual? |
(prevProps: Readonly<P>, nextProps: Readonly<P>) => boolean |
A function that will be used to determine if the props have changed. |
NamedExoticComponent<P>
.pnpm/@types+react@18.3.11/node_modules/@types/react/ts5.0/index.d.ts:1767
| Type Parameter |
|---|
T extends ComponentType<any> |
| Parameter | Type |
|---|---|
Component |
T |
propsAreEqual? |
(prevProps: Readonly<ComponentProps<T>>, nextProps: Readonly<ComponentProps<T>>) => boolean |
MemoExoticComponent<T>
.pnpm/@types+react@18.3.11/node_modules/@types/react/ts5.0/index.d.ts:1771