Skip to content

Commit 7c725eb

Browse files
committed
Added clarity to the list rendering section
1 parent ab18d2f commit 7c725eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/learn/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ return (
247247
);
248248
```
249249
250-
Notice how `<li>` 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.
250+
Notice how `<li>` 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.
251251
252252
<Sandpack>
253253

0 commit comments

Comments
 (0)