From 788d5094d8e0150b7e9bfc94c2e5bcc027c0f2b3 Mon Sep 17 00:00:00 2001 From: Hugh Prior Date: Thu, 1 Feb 2018 18:08:16 +0100 Subject: [PATCH] Update lists-and-keys.md (#559) I think the word "root" is misleading here. For me the root implies a single item, and the
  • here is more of a leaf. I think we can avoid all confusion simply by removing the word. --- content/docs/lists-and-keys.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/lists-and-keys.md b/content/docs/lists-and-keys.md index a9c444a9..7692d5fc 100644 --- a/content/docs/lists-and-keys.md +++ b/content/docs/lists-and-keys.md @@ -138,7 +138,7 @@ Here is an [in-depth explanation about why keys are necessary](/docs/reconciliat Keys only make sense in the context of the surrounding array. -For example, if you [extract](/docs/components-and-props.html#extracting-components) a `ListItem` component, you should keep the key on the `` elements in the array rather than on the root `
  • ` element in the `ListItem` itself. +For example, if you [extract](/docs/components-and-props.html#extracting-components) a `ListItem` component, you should keep the key on the `` elements in the array rather than on the `
  • ` element in the `ListItem` itself. **Example: Incorrect Key Usage**