Skip to content

Commit

Permalink
Improve displayName documentation (facebook#10451)
Browse files Browse the repository at this point in the history
* Improve displayName documentation

* displayName docs: higher-order component lowercased to stay consistent with the rest of the docs

* Rephrase displayName reference docs
  • Loading branch information
hnordt authored and sophiebits committed Sep 8, 2017
1 parent 11a1543 commit 617f881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/reference-react-component.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

* * *

Expand Down

0 comments on commit 617f881

Please sign in to comment.