Skip to content

Commit c586273

Browse files
authored
Merge pull request #1062 from dguo/patch-2
Fix no-array-index-key typo
2 parents c97dd0f + 8e207b8 commit c586273

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/rules/no-array-index-key.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Warn if an element uses an Array index in its `key`.
44

55
The `key` is used by React to [identify which items have changed, are added, or are removed and should be stable](https://facebook.github.io/react/docs/lists-and-keys.html#keys).
66

7-
It's a bad idea to use the array index since it doesn't uniquely identify your elements. In cases where the array is sorted or an element is added to the beginning of the array, the index will be changed even though the element representing that index may be the same. This results in in unnecessary renders.
7+
It's a bad idea to use the array index since it doesn't uniquely identify your elements. In cases where the array is sorted or an element is added to the beginning of the array, the index will be changed even though the element representing that index may be the same. This results in unnecessary renders.
88

99
## Rule Details
1010

0 commit comments

Comments
 (0)