From 7c725eb23afc2294f5a0f27ad36aa08734e65512 Mon Sep 17 00:00:00 2001 From: Nikita Kalmykov Date: Fri, 21 Mar 2025 02:12:52 +0900 Subject: [PATCH] Added clarity to the list rendering section --- src/content/learn/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/learn/index.md b/src/content/learn/index.md index 15e3b28663c..50f7e6e50d0 100644 --- a/src/content/learn/index.md +++ b/src/content/learn/index.md @@ -247,7 +247,7 @@ return ( ); ``` -Notice how `
  • ` has a `key` attribute. For each item in a list, you should pass a string or a number that uniquely identifies that item among its siblings. Usually, a key should be coming from your data, such as a database ID. React uses your keys to know what happened if you later insert, delete, or reorder the items. +Notice how `
  • ` has a `key` attribute. React requires keys to distinguish each item from the others. For each item in a list, you should pass a string or a number that uniquely identifies that item among its siblings. Usually, a key should be coming from your data, such as a database ID. React uses your keys to know what happened if you later insert, delete, or reorder the items. The keys are specific to a particular list of items.