You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rules/display-name.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -128,7 +128,7 @@ function HelloComponent() {
128
128
module.exports=HelloComponent();
129
129
```
130
130
131
-
### checkContextObjects
131
+
### checkContextObjects (default: `false`)
132
132
133
133
`displayName` allows you to [name your context](https://reactjs.org/docs/context.html#contextdisplayname) object. This name is used in the React dev tools for the context's `Provider` and `Consumer`.
134
134
When `true` this rule will warn on context objects without a `displayName`.
0 commit comments