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/updating-objects-in-state.md
+2-10Lines changed: 2 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -294,11 +294,7 @@ setPerson({
294
294
});
295
295
```
296
296
297
-
<<<<<<< HEAD
298
-
Form şimdi çalışıyor!
299
-
=======
300
-
Now the form works!
301
-
>>>>>>> abe931a8cb3aee3e8b15ef7e187214789164162a
297
+
Artık form çalışıyor!
302
298
303
299
Her input alanı için nasıl ayrı bir state değişkeni bildirmediğinize dikkat edin. Büyük formlar için, tüm verileri bir nesnede gruplanmış halde tutmak doğru bir şekilde güncellediğiniz sürece--çok uygundur!
Dikkat edilmesi gereken bir nokta, `...` spread sözdiziminin "yüzeysel" olmasıdır--yalnızca bir seviye derinliğe kadar kopyalar. Bu kopyalama işlemini hızlı yapar, ancak iç içe geçmiş bir özelliği güncellemek istiyorsanız, birden fazla kez kullanmanız gerekecektir.
380
-
=======
381
-
Note that the `...` spread syntax is "shallow"--it only copies things one level deep. This makes it fast, but it also means that if you want to update a nested property, you'll have to use it more than once.
382
-
>>>>>>> abe931a8cb3aee3e8b15ef7e187214789164162a
374
+
`...` spread syntax’inin "shallow" olduğuna dikkat edin--yalnızca bir seviye derindeki şeyleri copy eder. Bu onu hızlı yapar, ancak aynı zamanda nested bir property’yi update etmek istiyorsanız, onu birden fazla kez kullanmanız gerekeceği anlamına gelir.
0 commit comments