You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/learn/render-and-commit.md
+15-15Lines changed: 15 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: Render 和提交
2
+
title: Render 和 Commit
3
3
---
4
4
5
5
<Intro>
@@ -21,12 +21,12 @@ title: Render 和提交
21
21
22
22
1.**觸發** render (將客人的訂單發送到廚房)
23
23
2.**Rendering** component (在廚房裡準備菜餚)
24
-
3.**提交**給 DOM (將菜餚送上桌)
24
+
3.**Commit** 到 DOM (將菜餚送上桌)
25
25
26
26
<IllustrationBlocksequential>
27
-
<Illustrationcaption="觸發"alt="React as a server in a restaurant, fetching orders from the users and delivering them to the Component Kitchen."src="/images/docs/illustrations/i_render-and-commit1.png" />
27
+
<Illustrationcaption="Trigger"alt="React as a server in a restaurant, fetching orders from the users and delivering them to the Component Kitchen."src="/images/docs/illustrations/i_render-and-commit1.png" />
28
28
<Illustrationcaption="Render"alt="The Card Chef gives React a fresh Card component."src="/images/docs/illustrations/i_render-and-commit2.png" />
29
-
<Illustrationcaption="提交"alt="React delivers the Card to the user at their table."src="/images/docs/illustrations/i_render-and-commit3.png" />
29
+
<Illustrationcaption="Commit"alt="React delivers the Card to the user at their table."src="/images/docs/illustrations/i_render-and-commit3.png" />
30
30
</IllustrationBlock>
31
31
32
32
## 步驟 1: 觸發 render {/*step-1-trigger-a-render*/}
@@ -67,7 +67,7 @@ export default function Image() {
<Illustrationcaption="State update..."alt="React as a server in a restaurant, serving a Card UI to the user, represented as a patron with a cursor for their head. They patron expresses they want a pink card, not a black one!"src="/images/docs/illustrations/i_rerender1.png" />
@@ -82,7 +82,7 @@ export default function Image() {
82
82
***當初始 render 時,** React 會呼叫 root component.
83
83
***對於後續的 render,** React 會呼叫因狀態更新而觸發 render 的 function component。
0 commit comments