Skip to content

Commit 1cd8553

Browse files
committed
update translation according to the glossary
1 parent c1454e1 commit 1cd8553

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: 使用外部程式的元件
2+
title: 使用外部程式的 Component
33
order: 3
44
domid: markdown-example
55
---
66

7-
React 元件可以靈活的運用其他的函式庫和框架。這個範例使用了 **remarkable**,一個外部的 Markdown 函式庫來即時處理 `<textarea>` 的內容。
7+
React component 可以靈活的運用其他的函式庫和框架。這個範例使用了 **remarkable**,一個外部的 Markdown 函式庫來即時處理 `<textarea>` 的內容。

Diff for: content/home/examples/a-simple-component.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
2-
title: 簡單的元件
2+
title: 簡單的 Component
33
order: 0
44
domid: hello-example
55
---
66

7-
React 元件需要實做 `render()` 函式,這個函式接受輸入的資料並回傳需要顯示的內容。這個範例使用了 JSX,一個類似 XML 的語法。傳入給元件的輸入資料可以透過 `this.props``render()` 函式中存取
7+
React component 需要實做 `render()` function,這個函式接受輸入的資料並回傳需要顯示的內容。這個範例使用了 JSX,一個類似 XML 的語法。傳入給元件的輸入資料可以透過 `this.props``render()` function 中存取
88

99
**使用 React 並不一定要使用 JSX。** 試試看 [Babel REPL](babel://es5-syntax-example) 來了解由 JSX 編譯步驟產生的原始 JavaScript 程式碼。

Diff for: content/home/examples/a-stateful-component.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: 有狀態的元件
2+
title: Stateful Component
33
order: 1
44
domid: timer-example
55
---
66

7-
除了接受輸入資料外(透過 `this.props` 存取),一個元件也可以維護自身的狀態(透過 `this.state` 存取)。當一個元件的狀態資訊改變的時候,產生的標記語法將會透過重新呼叫 `render()` 自動更新
7+
除了接受輸入資料外(透過 `this.props` 存取),一個 Component 也可以保存自身的 state(透過 `this.state` 存取)。當一個 component 的 state 改變的時候,產生的標記語法將會透過自動重新呼叫 `render()` 更新

Diff for: content/home/examples/an-application.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ order: 2
44
domid: todos-example
55
---
66

7-
透過靈活運用 `props``state`,我們可以寫一個很簡易的待辦事項 App。這個範例使用 `state` 保存目前所有的待辦事項以及使用者目前輸入的文字。雖然這些事件處理函式像是直接寫在程式碼中,實際上 React 內部會自動收集他們並透過 event delegation 實做。
7+
透過靈活運用 `props``state`,我們可以寫一個很簡易的待辦事項 App。這個範例使用 `state` 保存目前所有的待辦事項以及使用者目前輸入的文字。雖然這些 event handler 像是直接寫在程式碼中,實際上 React 內部會自動收集他們並透過 event delegation 實做。

Diff for: content/home/marketing/component-based.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ title: 元件式開發
33
order: 1
44
---
55

6-
首先實做一個自我獨立的元件,然後活用他們建立複雜的使用者界面。
6+
首先實做一個自我獨立的 component,然後活用他們建立複雜的使用者界面。
77

8-
因為元件的邏輯是用 JavaScript 寫的而不是使用其他樣板語言,你可以輕鬆的在你的程式中傳遞複雜的資料而不需將其藏在 DOM 之中。
8+
因為 component 的邏輯是用 JavaScript 寫的而不是使用其他樣板語言,你可以輕鬆的在你的程式中傳遞複雜的資料而不需將其藏在 DOM 之中。

0 commit comments

Comments
 (0)