Skip to content

Commit 08f451f

Browse files
authored
Update no-array-index-key.md to address issue 1123
jsx-eslint#1123
1 parent 9bb68c1 commit 08f451f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: docs/rules/no-array-index-key.md

+4
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,7 @@ things.reduceRight((collection, thing) => (
9595
collection.concat(<Hello key={thing.id} />)
9696
), []);
9797
```
98+
99+
## When Not To Use It
100+
101+
If there is nothing unique about the items, for example [you are breaking an array down in to chunks](https://github.com/yannickcr/eslint-plugin-react/issues/1123), then you may want to disable this rule with an override.

0 commit comments

Comments
 (0)