@@ -4,7 +4,7 @@ DisplayName allows you to name your component. This name is used by React in deb
4
4
5
5
## Rule Details
6
6
7
- The following patterns are considered warnings :
7
+ Examples of ** incorrect ** code for this rule :
8
8
9
9
``` jsx
10
10
var Hello = createReactClass ({
@@ -14,7 +14,7 @@ var Hello = createReactClass({
14
14
});
15
15
```
16
16
17
- The following patterns are ** not ** considered warnings :
17
+ Examples of ** correct ** code for this rule :
18
18
19
19
``` jsx
20
20
var Hello = createReactClass ({
@@ -37,7 +37,7 @@ var Hello = createReactClass({
37
37
38
38
When ` true ` the rule will ignore the name set by the transpiler and require a ` displayName ` property in this case.
39
39
40
- The following patterns are considered okay and do ** not ** cause warnings :
40
+ Examples of ** correct ** code for this rule :
41
41
42
42
``` jsx
43
43
var Hello = createReactClass ({
@@ -66,7 +66,7 @@ export default function Hello({ name }) {
66
66
Hello .displayName = ' Hello' ;
67
67
```
68
68
69
- The following patterns will cause warnings :
69
+ Examples of ** incorrect ** code for this rule :
70
70
71
71
``` jsx
72
72
var Hello = createReactClass ({
@@ -120,4 +120,4 @@ For now we should detect components created with:
120
120
121
121
* ` createReactClass() `
122
122
* an ES6 class that inherit from ` React.Component ` or ` Component `
123
- * a stateless function that return JSX or the result of a ` React.createElement ` call.
123
+ * a stateless function that return JSX or the result of a ` React.createElement ` call.
0 commit comments