Skip to content

Commit dca0a52

Browse files
committed
translate second challenge renderıng-lısts
1 parent f441dc0 commit dca0a52

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/content/learn/rendering-lists.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -884,13 +884,13 @@ img { width: 100px; height: 100px; border-radius: 50%; }
884884

885885
</Solution>
886886

887-
#### Nested lists in one component {/*nested-lists-in-one-component*/}
887+
#### Bir bileşende iç içe geçmiş listeler {/*nested-lists-in-one-component*/}
888888

889-
Make a list of recipes from this array! For each recipe in the array, display its name as an `<h2>` and list its ingredients in a `<ul>`.
889+
Bu diziden bir tarif listesi yapın! Dizideki her bir tarif için tarifin ismini `<h2>` olarak gösterin ve içindekiler kısmını `<ul>` ile gösterin.
890890

891891
<Hint>
892892

893-
This will require nesting two different `map` calls.
893+
Bunu yapmak için iki `map` metodunu iç içe kullanmalısınız.
894894

895895
</Hint>
896896

@@ -928,7 +928,7 @@ export const recipes = [{
928928

929929
<Solution>
930930

931-
Here is one way you could go about it:
931+
Problemi çözmenin bir yolu şu şekildeydi:
932932

933933
<Sandpack>
934934

@@ -974,7 +974,7 @@ export const recipes = [{
974974

975975
</Sandpack>
976976

977-
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).
977+
Her bir `recipes` zaten bir `id` değerine sahip, bu yüzden dışardaki döngü bu değeri `anahtar` olarak kullanmakta. İçindekiler kısmındaki döngü için kullanabiliceğimiz bir ID değerine sahip değiliz. Ancak, bir malzeme aynı tarif içinde iki defa bulunmayacağından dolayı, malzemenin ismini `anahtar` olarak kullanmakta bir sakınca yoktur. Alternatif olarak, veri yapısını ID'ler olacak şekilde değiştirebilir ya da dizini `anahtar` olarak kullanabiliriz (malzemeleri güvenli bir şekilde yeniden sıralayamayacağımız uyarısıyla).
978978

979979
</Solution>
980980

0 commit comments

Comments
 (0)