Skip to content

Commit 8e207b8

Browse files
authored
Fix no-array-index-key typo
1 parent c97dd0f commit 8e207b8

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)