Skip to content

Commit

Permalink
[Docs] jsx-key: fix correct example
Browse files Browse the repository at this point in the history
  • Loading branch information
developer-bandi committed Nov 20, 2023
1 parent 9ff9ef9 commit 54b4984
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/jsx-key.md
Expand Up @@ -40,7 +40,7 @@ data.map((x) => <Hello key={x.id}>{x}</Hello>);
```

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

```jsx
Expand Down

0 comments on commit 54b4984

Please sign in to comment.