Skip to content

Commit dbeb76e

Browse files
committed
docs(en): merging all conflicts
2 parents 0dca54c + 3ee3a60 commit dbeb76e

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
@@ -676,7 +676,11 @@ label {
676676

677677
</Sandpack>
678678

679+
<<<<<<< HEAD
679680
当你勾选复选框后计数器的 state 被重置了。虽然你渲染了一个 `Counter`,但是 `div` 的第一个子组件从 `div` 变成了 `section`。当子组件 `div` 从 DOM 中被移除的时候,它底下的整棵树(包含 `Counter` 以及它的 state)也都被销毁了。
681+
=======
682+
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.
683+
>>>>>>> 3ee3a60a1bcc687c0b87039a3a6582e3b1d6887c
680684
681685
<DiagramGroup>
682686

0 commit comments

Comments
 (0)