From 3ee3a60a1bcc687c0b87039a3a6582e3b1d6887c Mon Sep 17 00:00:00 2001 From: Soichiro Miki Date: Mon, 26 May 2025 17:56:28 +0900 Subject: [PATCH 1/2] Fix wrong explanation in preserving-and-resetting-state (#6043) --- src/content/learn/preserving-and-resetting-state.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/learn/preserving-and-resetting-state.md b/src/content/learn/preserving-and-resetting-state.md index bf5531f35..11d398d23 100644 --- a/src/content/learn/preserving-and-resetting-state.md +++ b/src/content/learn/preserving-and-resetting-state.md @@ -672,7 +672,7 @@ label { -The counter state gets reset when you click the checkbox. Although you render a `Counter`, the first child of the `div` changes from a `div` to a `section`. When the child `div` was removed from the DOM, the whole tree below it (including the `Counter` and its state) was destroyed as well. +The counter state gets reset when you click the checkbox. Although you render a `Counter`, the first child of the `div` changes from a `section` to a `div`. When the child `section` was removed from the DOM, the whole tree below it (including the `Counter` and its state) was destroyed as well. From 9a4c0f8126256c62fe859e4ec3612c4b302e6260 Mon Sep 17 00:00:00 2001 From: anilcanboga Date: Thu, 12 Jun 2025 01:18:16 +0300 Subject: [PATCH 2/2] Sync with react.dev @ 3ee3a60a --- src/content/learn/preserving-and-resetting-state.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/content/learn/preserving-and-resetting-state.md b/src/content/learn/preserving-and-resetting-state.md index f33cd158e..83f2f8ea9 100644 --- a/src/content/learn/preserving-and-resetting-state.md +++ b/src/content/learn/preserving-and-resetting-state.md @@ -689,11 +689,7 @@ label { -<<<<<<< HEAD -Sayaç state'i kutucuğa tıkladığınız zaman sıfırlanır. `Counter` render etmenize rağmen, `div`'in ilk alt elemanı `div`'den `section`'a dönüşür. Alt eleman olan `div` DOM'dan kaldırıldığında, altındaki ağacın tamamı da (`Counter` ve state'i de dahil olmak üzere) yok edilir. -======= -The counter state gets reset when you click the checkbox. Although you render a `Counter`, the first child of the `div` changes from a `section` to a `div`. When the child `section` was removed from the DOM, the whole tree below it (including the `Counter` and its state) was destroyed as well. ->>>>>>> 3ee3a60a1bcc687c0b87039a3a6582e3b1d6887c +Onay kutusuna tıkladığınızda sayaç durumu sıfırlanır. Bir `Counter` oluşturmanıza rağmen, `div`in ilk alt eleman bir `section`dan bir `div`e dönüşür. Alt `section` DOM'dan kaldırıldığında, altındaki tüm ağaç (`Counter` ve state dahil) da yok edildi.