Skip to content

Commit 7fcc2fe

Browse files
committed
fix: adjust wording for consistency
1 parent 153cf48 commit 7fcc2fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/learn/thinking-in-react.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Mockup 看起來像這樣:
6161

6262
</FullWidth>
6363

64-
若你查看 `ProductTable`(淡紫色)時,會發現表格的表頭(包含 "Name" 和 "Price" 標籤)並不是獨立的 component。這純粹是偏好的問題,你可以選擇任何一種作法。以這裡為例,表頭被視為 `ProductTable` 的一部分,因為它出現在 `ProductTable` 的清單中。不過,當這個表頭變得更加複雜(例如加入了排序功能),你就可以把它抽出成獨立的 `ProductTableHeader` component。
64+
若你查看 `ProductTable`(淡紫色)時,會發現表格的表頭(包含Name」和「Price標籤)並不是獨立的 component。這純粹是偏好的問題,你可以選擇任何一種作法。以這裡為例,表頭被視為 `ProductTable` 的一部分,因為它出現在 `ProductTable` 的清單中。不過,當這個表頭變得更加複雜(例如加入了排序功能),你就可以把它抽出成獨立的 `ProductTableHeader` component。
6565

6666
現在你已經辨識出所有 mockup 裡的 component 了,接下來要將它們整理成層級結構。只要在 mockup 中出現在其他 component 裡的 component,都應該以 child component 的層級呈現:
6767

0 commit comments

Comments
 (0)