Skip to content

Commit 96b81fe

Browse files
Update src/content/learn/build-a-react-app-from-scratch.md
Co-authored-by: Xavi Lee <xavilee2002@outlook.com>
1 parent 54737ff commit 96b81fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/learn/build-a-react-app-from-scratch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ React 生态系统中包含许多用于解决这些问题的工具。我们列
130130

131131
* **静态站点生成 (SSG)** 在构建时为你的应用生成静态 HTML 文件。SSG 可以提高性能,但设置和维护可能比服务器端渲染更复杂。请参阅[Vite 的 SSG 指南](https://vite.dev/guide/ssr.html#pre-rendering-ssg)
132132

133-
* **React 服务器组件 (RSC)** 允许你在单个 React 树中混合构建时、仅服务器和交互式组件。RSC 可以提高性能,但目前需要深入的专业知识来设置和维护。 请参阅 [Parcel 的 RSC 示例](https://github.com/parcel-bundler/rsc-examples)
133+
* **React 服务器组件 (RSC)** 允许你在单个 React 树中混合构建时、仅服务器和交互式组件。RSC 可以提高性能,但目前需要深入的专业知识来设置和维护。请参阅 [Parcel 的 RSC 示例](https://github.com/parcel-bundler/rsc-examples)
134134

135135
你的渲染策略需要与路由器集成,以便使用你的框架构建的应用程序可以在每个路由级别选择渲染策略。这将使你能够在不重写整个应用程序的情况下使用不同的渲染策略。例如,你的应用程序的登录页面可能会从静态生成 (SSG) 中受益,而具有内容提要的页面可能在服务器端渲染时表现最佳。
136136

0 commit comments

Comments
 (0)