File tree Expand file tree Collapse file tree
src/content/reference/react Expand file tree Collapse file tree Original file line number Diff line number Diff line change 281281
282282### 恢复隐藏组件的 DOM {/* restoring-the-dom-of-hidden-components* /}
283283
284- 由于 ` Activity ` 边界使用 ` display: none ` 来隐藏其子组件,因此这些子组件的 DOM 在隐藏时也会被保留。这使得它们非常适合用于维护 UI 中那些用户可能会再次交互的部分的瞬时状态 。
284+ 由于 ` Activity ` 边界使用 ` display: none ` 来隐藏其子组件,因此这些子组件的 DOM 在隐藏时也会被保留。这使得它们非常适合用于维护 UI 中那些用户可能会再次交互的部分的 ephemeral state 。
285285
286286在此示例中,` Contact ` 标签页包含一个 ` <textarea> ` ,用户可以在其中输入消息。如果你输入了一些文本,切换到 ` Home ` 标签页,然后再切回 ` Contact ` 标签页,那么草稿消息将会丢失:
287287
@@ -467,7 +467,7 @@ b { display: inline-block; margin-right: 10px; }
467467
468468### 预渲染可能变为可见的内容 {/* pre-rendering-content-thats-likely-to-become-visible* /}
469469
470- 到目前为止,我们已经了解了 ` Activity ` 是如何在隐藏用户交互过的内容的同时,而不丢弃这些内容的瞬时状态( ephemeral state) 的。
470+ 到目前为止,我们已经了解了 ` Activity ` 是如何在隐藏用户交互过的内容的同时,而不丢弃这些内容的 ephemeral state 的。
471471
472472不仅如此,` Activity ` 边界还可以用来预先 ** 准备** 那些用户尚未初次看到的内容:
473473
You can’t perform that action at this time.
0 commit comments