File tree 2 files changed +11
-1
lines changed 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,11 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange
22
22
* [ Refactor] [ ` jsx-indent-props ` ] : improved readability of the checkNodesIndent function ([ #3315 ] [ ] @caroline223 )
23
23
* [ Tests] [ ` jsx-indent ` ] , [ ` jsx-one-expression-per-line ` ] : add passing test cases ([ #3314 ] [ ] @ROSSROSALES )
24
24
* [ Refactor] ` boolean-prop-naming ` , ` jsx-indent ` : avoid assigning to arguments ([ #3316 ] [ ] @caroline223 )
25
- * [ Docs] ` sort-comp ` : add class component examples ([ #3339 ] [ ] @maurer2 )
25
+ * [ Docs] [ ` sort-comp ` ] : add class component examples ([ #3339 ] [ ] @maurer2 )
26
+ * [ Docs] [ ` jsx-no-useless-fragment ` ] : add more examples of correct code ([ #3349 ] [ ] @karlhorky )
26
27
27
28
[ #3350 ] : https://github.com/jsx-eslint/eslint-plugin-react/pull/3350
29
+ [ #3349 ] : https://github.com/jsx-eslint/eslint-plugin-react/pull/3349
28
30
[ #3339 ] : https://github.com/jsx-eslint/eslint-plugin-react/pull/3339
29
31
[ #3335 ] : https://github.com/jsx-eslint/eslint-plugin-react/pull/3335
30
32
[ #3331 ] : https://github.com/jsx-eslint/eslint-plugin-react/pull/3331
Original file line number Diff line number Diff line change @@ -27,11 +27,17 @@ Examples of **incorrect** code for this rule:
27
27
< div / >
28
28
< / >
29
29
< / section>
30
+
31
+ {showFullName ? <> {fullName}< / > : <> {firstName}< / > }
30
32
```
31
33
32
34
Examples of ** correct** code for this rule:
33
35
34
36
``` jsx
37
+ {foo}
38
+
39
+ < Foo / >
40
+
35
41
<>
36
42
< Foo / >
37
43
< Bar / >
@@ -51,6 +57,8 @@ const cat = <>meow</>
51
57
< / SomeComponent>
52
58
53
59
< Fragment key= {item .id }> {item .value }< / Fragment>
60
+
61
+ {showFullName ? fullName : firstName}
54
62
```
55
63
56
64
### ` allowExpressions `
You can’t perform that action at this time.
0 commit comments