Scientists
-{title}
@@ -793,15 +794,15 @@ function ListSection({ title, people }) { ); } -export default function List() { +export default function लिस्ट() { return (Scientists
-` and list its ingredients in a ``.
+Make a लिस्ट of recipes from this array! For each recipe in the array, display its title as an `` and लिस्ट its ingredients in a ``.
@@ -885,7 +886,7 @@ This will require nesting two different `map` calls.
```js App.js
import { recipes } from './data.js';
-export default function RecipeList() {
+export default function Recipeलिस्ट() {
return (
Recipes
@@ -921,7 +922,7 @@ Here is one way you could go about it:
```js App.js
import { recipes } from './data.js';
-export default function RecipeList() {
+export default function Recipeलिस्ट() {
return (
Recipes
@@ -960,20 +961,20 @@ export const recipes = [{
-Each of the `recipes` already includes an `id` field, so that's what the outer loop uses for its `key`. There is no ID you could use to loop over ingredients. However, it's reasonable to assume that the same ingredient won't be listed twice within the same recipe, so its name can serve as a `key`. Alternatively, you could change the data structure to add IDs, or use index as a `key` (with the caveat that you can't safely reorder ingredients).
+Each of the `recipes` already includes an `id` field, so that's what the outer loop uses for its `key`. There is no ID you could use to loop over ingredients. However, it's reasonable to assume that the same ingredient won't be लिस्टed twice within the same recipe, so its name can serve as a `key`. Alternatively, you could change the data structure to add IDs, or use index as a `key` (with the caveat that you can't safely reorder ingredients).
-### Extracting a list item component {/*extracting-a-list-item-component*/}
+### Extracting a लिस्ट item component {/*extracting-a-लिस्ट-item-component*/}
-This `RecipeList` component contains two nested `map` calls. To simplify it, extract a `Recipe` component from it which will accept `id`, `name`, and `ingredients` props. Where do you place the outer `key` and why?
+This `Recipeलिस्ट` component contains two nested `map` calls. To simplify it, extract a `Recipe` component from it which will accept `id`, `name`, and `ingredients` props. Where do you place the outer `key` and why?
```js App.js
import { recipes } from './data.js';
-export default function RecipeList() {
+export default function Recipeलिस्ट() {
return (
Recipes
@@ -1036,7 +1037,7 @@ function Recipe({ id, name, ingredients }) {
);
}
-export default function RecipeList() {
+export default function Recipeलिस्ट() {
return (
Recipes
@@ -1072,7 +1073,7 @@ Here, ` ` is a syntax shortcut saying "pass
-### List with a separator {/*list-with-a-separator*/}
+### लिस्ट with a separator {/*लिस्ट-with-a-separator*/}
This example renders a famous haiku by Katsushika Hokusai, with each line wrapped in a `` tag. Your job is to insert an `
` separator between each paragraph. Your resulting structure should look like this:
` and लिस्ट its ingredients in a ``.
@@ -885,7 +886,7 @@ This will require nesting two different `map` calls.
```js App.js
import { recipes } from './data.js';
-export default function RecipeList() {
+export default function Recipeलिस्ट() {
return (
Recipes
@@ -921,7 +922,7 @@ Here is one way you could go about it:
```js App.js
import { recipes } from './data.js';
-export default function RecipeList() {
+export default function Recipeलिस्ट() {
return (
Recipes
@@ -960,20 +961,20 @@ export const recipes = [{
-Each of the `recipes` already includes an `id` field, so that's what the outer loop uses for its `key`. There is no ID you could use to loop over ingredients. However, it's reasonable to assume that the same ingredient won't be listed twice within the same recipe, so its name can serve as a `key`. Alternatively, you could change the data structure to add IDs, or use index as a `key` (with the caveat that you can't safely reorder ingredients).
+Each of the `recipes` already includes an `id` field, so that's what the outer loop uses for its `key`. There is no ID you could use to loop over ingredients. However, it's reasonable to assume that the same ingredient won't be लिस्टed twice within the same recipe, so its name can serve as a `key`. Alternatively, you could change the data structure to add IDs, or use index as a `key` (with the caveat that you can't safely reorder ingredients).
-### Extracting a list item component {/*extracting-a-list-item-component*/}
+### Extracting a लिस्ट item component {/*extracting-a-लिस्ट-item-component*/}
-This `RecipeList` component contains two nested `map` calls. To simplify it, extract a `Recipe` component from it which will accept `id`, `name`, and `ingredients` props. Where do you place the outer `key` and why?
+This `Recipeलिस्ट` component contains two nested `map` calls. To simplify it, extract a `Recipe` component from it which will accept `id`, `name`, and `ingredients` props. Where do you place the outer `key` and why?
```js App.js
import { recipes } from './data.js';
-export default function RecipeList() {
+export default function Recipeलिस्ट() {
return (
Recipes
@@ -1036,7 +1037,7 @@ function Recipe({ id, name, ingredients }) {
);
}
-export default function RecipeList() {
+export default function Recipeलिस्ट() {
return (
Recipes
@@ -1072,7 +1073,7 @@ Here, ` ` is a syntax shortcut saying "pass
-### List with a separator {/*list-with-a-separator*/}
+### लिस्ट with a separator {/*लिस्ट-with-a-separator*/}
This example renders a famous haiku by Katsushika Hokusai, with each line wrapped in a `` tag. Your job is to insert an `
` separator between each paragraph. Your resulting structure should look like this:
Recipes
@@ -921,7 +922,7 @@ Here is one way you could go about it: ```js App.js import { recipes } from './data.js'; -export default function RecipeList() { +export default function Recipeलिस्ट() { return (Recipes
@@ -960,20 +961,20 @@ export const recipes = [{ -Each of the `recipes` already includes an `id` field, so that's what the outer loop uses for its `key`. There is no ID you could use to loop over ingredients. However, it's reasonable to assume that the same ingredient won't be listed twice within the same recipe, so its name can serve as a `key`. Alternatively, you could change the data structure to add IDs, or use index as a `key` (with the caveat that you can't safely reorder ingredients). +Each of the `recipes` already includes an `id` field, so that's what the outer loop uses for its `key`. There is no ID you could use to loop over ingredients. However, it's reasonable to assume that the same ingredient won't be लिस्टed twice within the same recipe, so its name can serve as a `key`. Alternatively, you could change the data structure to add IDs, or use index as a `key` (with the caveat that you can't safely reorder ingredients). -### Extracting a list item component {/*extracting-a-list-item-component*/} +### Extracting a लिस्ट item component {/*extracting-a-लिस्ट-item-component*/} -This `RecipeList` component contains two nested `map` calls. To simplify it, extract a `Recipe` component from it which will accept `id`, `name`, and `ingredients` props. Where do you place the outer `key` and why? +This `Recipeलिस्ट` component contains two nested `map` calls. To simplify it, extract a `Recipe` component from it which will accept `id`, `name`, and `ingredients` props. Where do you place the outer `key` and why?Recipes
@@ -1036,7 +1037,7 @@ function Recipe({ id, name, ingredients }) { ); } -export default function RecipeList() { +export default function Recipeलिस्ट() { return (Recipes
@@ -1072,7 +1073,7 @@ Here, `` tag. Your job is to insert an `
` separator between each paragraph. Your resulting structure should look like this: