` 的父组件中替换出错的子组件会导致 SSR 的激活不匹配。相反,尽量将可能抛出错误的逻辑从子组件的 `setup()` 中抽成一个独立的函数并在父组件的 `setup()` 中执行,这样就可以安全地 `try/catch` 执行过程,并在渲染实际的子组件前根据需要进行替换。
## renderTracked {#rendertracked}
diff --git a/src/guide/extras/render-function.md b/src/guide/extras/render-function.md
index eb4253714..35c4434de 100644
--- a/src/guide/extras/render-function.md
+++ b/src/guide/extras/render-function.md
@@ -705,8 +705,8 @@ const vnode = withDirectives(h('div'), [
### 模板引用 {#template-refs}
-
-With the Composition API, when using [`useTemplateRef()`](/api/composition-api-helpers#usetemplateref) template refs are created by passing the string value as prop to the vnode:
+
+在组合式 API 中使用 [`useTemplateRef()`](/api/composition-api-helpers#usetemplateref) 时,模板引用是通过将字符串值作为 prop 传递给 vnode 创建的:
```js
import { h, useTemplateRef } from 'vue'
@@ -722,9 +722,9 @@ export default {
```
-Usage before 3.5
+3.5 之前的用法
-In versions before 3.5 where useTemplateRef() was not introduced, template refs are created by passing the ref() itself as a prop to the vnode:
+在 3.5 版本之前 useTemplateRef() 暂未引入,模板引用是通过将 ref() 本身作为 prop 传递给 vnode 创建的:
```js
import { h, ref } from 'vue'