From 2fc474ef46e46be32417aed0c4e64b7c55d4f662 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9liton=20Nordt?= Date: Sat, 9 Sep 2017 11:45:25 +1200 Subject: [PATCH] Improve displayName documentation (#10451) * Improve displayName documentation * displayName docs: higher-order component lowercased to stay consistent with the rest of the docs * Rephrase displayName reference docs --- docs/reference-react-component.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference-react-component.md b/docs/reference-react-component.md index b71b92a4..c1632e13 100644 --- a/docs/reference-react-component.md +++ b/docs/reference-react-component.md @@ -343,7 +343,7 @@ If `props.color` is set to null, it will remain null: ### `displayName` -The `displayName` string is used in debugging messages. JSX sets this value automatically; see [JSX in Depth](/react/docs/jsx-in-depth.html). +The `displayName` string is used in debugging messages. Usually, you don't need to set it explicitly because it's inferred from the name of the function or class that defines the component. You might want to set it explicitly if you want to display a different name for debugging purposes or when you create a higher-order component, see [Wrap the Display Name for Easy Debugging](/react/docs/higher-order-components.html#convention-wrap-the-display-name-for-easy-debugging) for details. * * *