You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/learn/preserving-and-resetting-state.md
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1415,15 +1415,15 @@ Bu şekilde `Form` her zaman ikinci alt elemandır yani her zaman aynı konumdad
1415
1415
1416
1416
</Solution>
1417
1417
1418
-
#### Swap two form fields {/*swap-two-form-fields*/}
1418
+
#### İki form alanını değiştir {/*swap-two-form-fields*/}
1419
1419
1420
-
This form lets you enter first and last name. It also has a checkbox controlling which field goes first. When you tick the checkbox, the "Last name" field will appear before the "First name" field.
1420
+
Bu form ad ve soyadınızı girmenize izin verir. Aynı zamanda hangi alanın daha önce geleceğini kontrol eden kutucuk vardır. Kutucuğu işaretlediğiniz zaman "Soyad" alanı "Ad" alanından önce gelecektir.
1421
1421
1422
-
It almost works, but there is a bug. If you fill in the "First name" input and tick the checkbox, the text will stay in the first input (which is now "Last name"). Fix it so that the input text *also* moves when you reverse the order.
1422
+
Neredeyse çalışmakta ancak bir hata var. Eğer "Ad" input'unu doldurup kutucuğu işaretlerseniz, adınız ilk input'ta kalacaktır (artık "Soyad" olan input). Sırayı değiştirdiğinzde input metninin de değişeceği şekilde düzenleyin.
1423
1423
1424
1424
<Hint>
1425
1425
1426
-
It seems like for these fields, their position within the parent is not enough. Is there some way to tell React how to match up the state between re-renders?
1426
+
Görünüşe göre bu alanlar için üst eleman içindeki konumları yeterli değildir. React'e yeniden render'lar arasında state'leri nasıl eşleştireceğini söylemenin bir yolu var mı?
1427
1427
1428
1428
</Hint>
1429
1429
@@ -1441,22 +1441,22 @@ export default function App() {
Give a `key` to both `<Field>`components in both `if` and `else` branches. This tells React how to "match up" the correct state for either `<Field>`even if their order within the parent changes:
1490
+
`if` ve `else` dallarındaki her iki `<Field>`bileşenine `anahtar` (`key`) verin. Bu, React'e her iki `<Field>`bileşeni için üst elemandaki sıraları değişse bile doğru state'i nasıl "eşleştireceğini" söyler.
1491
1491
1492
1492
<Sandpack>
1493
1493
@@ -1503,22 +1503,22 @@ export default function App() {
0 commit comments