diff --git a/packages/react/src/ReactForwardRef.js b/packages/react/src/ReactForwardRef.js index ad9f5a909036a..8978763ba15ef 100644 --- a/packages/react/src/ReactForwardRef.js +++ b/packages/react/src/ReactForwardRef.js @@ -71,6 +71,7 @@ export function forwardRef( Object.defineProperty(render, 'name', { value: name, }); + render.displayName = name; } }, }); diff --git a/packages/react/src/ReactMemo.js b/packages/react/src/ReactMemo.js index 2948a28193e87..0149712b054c5 100644 --- a/packages/react/src/ReactMemo.js +++ b/packages/react/src/ReactMemo.js @@ -51,6 +51,7 @@ export function memo( Object.defineProperty(type, 'name', { value: name, }); + type.displayName = name; } }, });