Skip to content

Commit 788d509

Browse files
githubshrekalexkrolick
authored andcommitted
Update lists-and-keys.md (reactjs#559)
I think the word "root" is misleading here. For me the root implies a single item, and the <li> here is more of a leaf. I think we can avoid all confusion simply by removing the word.
1 parent 180ee6b commit 788d509

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

content/docs/lists-and-keys.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ Here is an [in-depth explanation about why keys are necessary](/docs/reconciliat
138138

139139
Keys only make sense in the context of the surrounding array.
140140

141-
For example, if you [extract](/docs/components-and-props.html#extracting-components) a `ListItem` component, you should keep the key on the `<ListItem />` elements in the array rather than on the root `<li>` element in the `ListItem` itself.
141+
For example, if you [extract](/docs/components-and-props.html#extracting-components) a `ListItem` component, you should keep the key on the `<ListItem />` elements in the array rather than on the `<li>` element in the `ListItem` itself.
142142

143143
**Example: Incorrect Key Usage**
144144

0 commit comments

Comments
 (0)