diff --git a/beta/src/pages/learn/rendering-lists.md b/beta/src/pages/learn/rendering-lists.md index f1710fe60..c043152c6 100644 --- a/beta/src/pages/learn/rendering-lists.md +++ b/beta/src/pages/learn/rendering-lists.md @@ -1,24 +1,24 @@ --- -title: Rendering Lists +title: Rendering लिस्ट --- -You will often want to display multiple similar components from a collection of data. You can use the [JavaScript array methods](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array#) to manipulate an array of data. On this page, you'll use [`filter()`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/filter) and [`map()`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/map) with React to filter and transform your array of data into an array of components. +आप अक्सर डेटा के संग्रह से कई समान घटकों को प्रदर्शित करना चाहेंगे। आप डेटा की एक अरे में हेरफेर करने के लिए [JavaScript array methods](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array#) का उपयोग कर सकते हैं। इस पेज पर, आप रिएक्ट के साथ [`filter()`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/filter) और [`map()`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/map) का उपयोग करेंगे और अपने डेटा की अरे को घटकों की एक अरे में बदल देंगे। -* How to render components from an array using JavaScript's `map()` -* How to render only specific components using JavaScript's `filter()` -* When and why to use React keys +* JavaScript के `map()` का उपयोग करके किसी अरे से घटकों को कैसे प्रस्तुत किया जाए +* JavaScript के `filter()` का उपयोग करके केवल विशिष्ट घटकों को कैसे प्रस्तुत करें +* React कीज़ का उपयोग कब और क्यों करें -## Rendering data from arrays {/*rendering-data-from-arrays*/} +## अरे से डेटा Rendering करना {/*rendering-data-from-arrays*/} -Say that you have a list of content. +मान लें कि आपके पास लिस्ट की एक सूची है। ```js ``` -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. +उन लिस्ट में एकमात्र अंतर उनकी लिस्ट , उनका डेटा है। इंटरफेस बनाते समय आपको अक्सर अलग-अलग डेटा का उपयोग करके एक ही घटक के कई उदाहरण दिखाने की आवश्यकता होगी: टिप्पणियों की लिस्ट से लेकर प्रोफ़ाइल इमेजिस की गैलरी तक। इन स्थितियों में, आप उस डेटा को JavaScript ऑब्जेक्ट और सरणियों में संग्रहीत कर सकते हैं और उनसे घटकों की लिस्ट प्रस्तुत करने के लिए [`map()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map) और [`filter()`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array/filter) जैसी विधियों का उपयोग कर सकते हैं। -Here’s a short example of how to generate a list of items from an array: -1. **Move** the data into an array: +किसी अरे से आइटम्स की लिस्ट कैसे जेनरेट करें, इसका एक संक्षिप्त उदाहरण यहां दिया गया है: + +1. डेटा को एक अरे में **Move** करें: ```js const people = [ @@ -46,19 +47,19 @@ const people = [ ]; ``` -2. **Map** the `people` members into a new array of JSX nodes, `listItems`: +2. **Map** `लोगों` के सदस्यों को JSX नोड्स की एक नई अरे में, `listItems`: ```js const listItems = people.map(person =>
  • {person}
  • ); ``` -3. **Return** `listItems` from your component wrapped in a `