From 48318fab9b670f6a27802895e07e9cbb0c4c7777 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=80=E1=85=B5=E1=86=B7=E1=84=89=E1=85=A1=E1=86=BC?= =?UTF-8?q?=E1=84=83=E1=85=AE?= Date: Tue, 21 Nov 2023 06:53:01 +0900 Subject: [PATCH] [Docs] `jsx-key`: fix correct example --- CHANGELOG.md | 2 ++ docs/rules/jsx-key.md | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f67436c6c7..ff40414408 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,7 +22,9 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange * [Refactor] [`boolean-prop-naming`]: invert if statement ([#3634][] @HenryBrown0) * [Refactor] [`function-component-definition`]: exit early if no type params ([#3634][] @HenryBrown0) * [Refactor] [`jsx-props-no-multi-spaces`]: extract type parameters to var ([#3634][] @HenryBrown0) +* [Docs] [`jsx-key`]: fix correct example ([#3656][] @developer-bandi) +[#3656]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3656 [#3654]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3654 [#3652]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3652 [#3645]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3645 diff --git a/docs/rules/jsx-key.md b/docs/rules/jsx-key.md index d9f2f3078b..0426f9f81a 100644 --- a/docs/rules/jsx-key.md +++ b/docs/rules/jsx-key.md @@ -40,7 +40,7 @@ data.map((x) => {x}); ``` ```jsx -Array.from([1, 2, 3], (x) => {x}); +Array.from([1, 2, 3], (x) => {x}); ``` ```jsx