Skip to content

Commit 0780bd0

Browse files
merging all conflicts
2 parents faee10c + 3ee3a60 commit 0780bd0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/content/learn/preserving-and-resetting-state.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,11 @@ label {
671671

672672
</Sandpack>
673673

674+
<<<<<<< HEAD
674675
체크 박스를 선택할 때 카운터 state가 초기화됩니다. `div`의 첫 번째 자식으로 `Counter`를 렌더링하는 것에서 `section`의 첫 번째 자식으로 바꾸지만요. 자식 `div`가 DOM에서 제거될 때 그것의 전체 하위 트리(`Counter`와 그 state를 포함해서)는 제거됩니다.
676+
=======
677+
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.
678+
>>>>>>> 3ee3a60a1bcc687c0b87039a3a6582e3b1d6887c
675679
676680
<DiagramGroup>
677681

0 commit comments

Comments
 (0)