Skip to content

Commit

Permalink
translate special-props page
Browse files Browse the repository at this point in the history
  • Loading branch information
anilcanboga committed Jan 19, 2025
1 parent 0989e99 commit 1f07791
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/warnings/special-props.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ title: Özel Props Uyarısı

Bir JSX öğesindeki çoğu prop bileşene iletilir, ancak React tarafından kullanılan ve bu nedenle bileşene iletilmeyen iki özel prop (`ref` ve `key`) vardır.

Örneğin, bir bileşenden `props.key` dosyasını okuyamazsınız. Alt bileşen içinde aynı değere erişmeniz gerekiyorsa, bunu farklı bir prop olarak iletmelisiniz (örn: `<ListItemWrapper key={result.id} id={result.id} />` ve `props.id` oku). While this may seem redundant, it's important to separate app logic from hints to React.
Örneğin, bir bileşenden `props.key` dosyasını okuyamazsınız. Alt bileşen içinde aynı değere erişmeniz gerekiyorsa, bunu farklı bir prop olarak iletmelisiniz (örn: `<ListItemWrapper key={result.id} id={result.id} />` ve `props.id` oku). Bu gereksiz gibi görünse de, uygulama mantığını ipucundan ayırmak önemlidir

0 comments on commit 1f07791

Please sign in to comment.