← React Intermediate Questions - Set 12 Q120

What is the significance of the `displayName` property in React?

React Intermediate Questions - Set 12

Example

const Row = memo(function Row() { … });
Row.displayName = 'Row';   // DevTools shows "Row" instead of "Anonymous"

What to notice

← Back to the question list