Skip to content

Commit 54b4984

Browse files
[Docs] jsx-key: fix correct example
1 parent 9ff9ef9 commit 54b4984

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/rules/jsx-key.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ data.map((x) => <Hello key={x.id}>{x}</Hello>);
4040
```
4141

4242
```jsx
43-
Array.from([1, 2, 3], (x) => <Hello key={x.id}>{x}</Hello>);
43+
Array.from([1, 2, 3], (x) => <Hello key={x}>{x}</Hello>);
4444
```
4545

4646
```jsx

0 commit comments

Comments
 (0)