diff --git a/docs/rules/jsx-key.md b/docs/rules/jsx-key.md index 75b5b5c960..6e7b71ef94 100644 --- a/docs/rules/jsx-key.md +++ b/docs/rules/jsx-key.md @@ -11,14 +11,20 @@ The following patterns are considered warnings: [, , ]; data.map(x => {x}); + + ``` +In the last example the key is being spread, which is currently possible, but discouraged in favor of the statically provided key. + The following patterns are **not** considered warnings: ```jsx [, , ]; data.map((x, i) => {x}); + + ``` ## When not to use