From ac0c34da80e1c85c76f4ef31409d7bf1b040aa23 Mon Sep 17 00:00:00 2001 From: Jeongwoo Park Date: Sun, 27 Mar 2022 22:38:07 +0200 Subject: [PATCH 1/2] Fix grammar --- beta/src/pages/learn/rendering-lists.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beta/src/pages/learn/rendering-lists.md b/beta/src/pages/learn/rendering-lists.md index c3c83cb6dfc..a8073d6f182 100644 --- a/beta/src/pages/learn/rendering-lists.md +++ b/beta/src/pages/learn/rendering-lists.md @@ -30,7 +30,7 @@ Say that you have a list of content. ``` -The only difference among those list items are their contents, their data. You will run into many situations where you need many of the same component using different data when building interfaces: from lists of comments to galleries of profile images. In these situations, you can store that data in JavaScript objects and arrays and use methods like [`map()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map) and [`filter()`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/filter) to render lists of components from them. +The only difference among those list items is their contents, their data. You will run into many situations where you need many of the same components using different data when building interfaces: from lists of comments to galleries of profile images. In these situations, you can store that data in JavaScript objects and arrays and use methods like [`map()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map) and [`filter()`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/filter) to render lists of components from them. Here’s a short example of how to generate a list of items from an array: From 51b96c9e890752e325c291e72bb4aa00e1e4193a Mon Sep 17 00:00:00 2001 From: dan Date: Mon, 4 Apr 2022 12:50:11 +0100 Subject: [PATCH 2/2] Update rendering-lists.md --- beta/src/pages/learn/rendering-lists.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beta/src/pages/learn/rendering-lists.md b/beta/src/pages/learn/rendering-lists.md index a8073d6f182..41dd66f8d7d 100644 --- a/beta/src/pages/learn/rendering-lists.md +++ b/beta/src/pages/learn/rendering-lists.md @@ -30,7 +30,7 @@ Say that you have a list of content. ``` -The only difference among those list items is their contents, their data. You will run into many situations where you need many of the same components using different data when building interfaces: from lists of comments to galleries of profile images. In these situations, you can store that data in JavaScript objects and arrays and use methods like [`map()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map) and [`filter()`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/filter) to render lists of components from them. +The only difference among those list items is their contents, their data. You will often need to show several instances of the same component using different data when building interfaces: from lists of comments to galleries of profile images. In these situations, you can store that data in JavaScript objects and arrays and use methods like [`map()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map) and [`filter()`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/filter) to render lists of components from them. Here’s a short example of how to generate a list of items from an array: