From 20252cbb578205882e6262b37f6fca2c0a6a93b8 Mon Sep 17 00:00:00 2001 From: Pascal Fong Kye Date: Mon, 26 Dec 2022 13:42:40 +0100 Subject: [PATCH] fix(typos): some small typos (#5401) use name instead of title as in the data provided --- beta/src/content/learn/rendering-lists.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beta/src/content/learn/rendering-lists.md b/beta/src/content/learn/rendering-lists.md index 0231961b..b7c4854b 100644 --- a/beta/src/content/learn/rendering-lists.md +++ b/beta/src/content/learn/rendering-lists.md @@ -764,7 +764,7 @@ img { width: 100px; height: 100px; border-radius: 50%; } A very attentive reader might notice that with two `filter` calls, we check each person's profession twice. Checking a property is very fast, so in this example it's fine. If your logic was more expensive than that, you could replace the `filter` calls with a loop that manually constructs the arrays and checks each person once. -In fact, if `people` never change, you could move this code out of your component. From React's perspective, all that matters if that you give it an array of JSX nodes in the end. It doesn't care how you produce that array: +In fact, if `people` never change, you could move this code out of your component. From React's perspective, all that matters is that you give it an array of JSX nodes in the end. It doesn't care how you produce that array: @@ -884,7 +884,7 @@ img { width: 100px; height: 100px; border-radius: 50%; } #### Nested lists in one component {/*nested-lists-in-one-component*/} -Make a list of recipes from this array! For each recipe in the array, display its title as an `

` and list its ingredients in a `
    `. +Make a list of recipes from this array! For each recipe in the array, display its name as an `

    ` and list its ingredients in a `
      `.