Repository navigation
Conversation
| <Intro> | ||
|
|
||
| The magic of components lies in their reusability: you can create components that are composed of other components. But as you nest more and more components, it often makes sense to start splitting them into different files. This lets you keep your files easy to scan and reuse components in more places. | ||
| Component 的神奇之處在於它的可複用性: 你可以創建一個由其他 component 組成的 component。但當你嵌套越來越多 component,則需要開始將它們拆分為不同的檔案。這將會提升檔案的閱讀性,也能讓 component 重複應用在更多地方。 |
Member
There was a problem hiding this comment.
Suggested change
| Component 的神奇之處在於它的可複用性: 你可以創建一個由其他 component 組成的 component。但當你嵌套越來越多 component,則需要開始將它們拆分為不同的檔案。這將會提升檔案的閱讀性,也能讓 component 重複應用在更多地方。 | |
| Component 的神奇之處在於它的可複用性:你可以建立 component 並與其他 component 組合。但當你嵌套越來越多 component,則需要開始將它們拆分為不同的檔案。這將會提升檔案的閱讀性,也能讓 component 重複應用在更多地方。 |
| * When to use default and named imports and exports | ||
| * How to import and export multiple components from one file | ||
| * How to split components into multiple files | ||
| * 什麼是根 component 檔案 |
Member
There was a problem hiding this comment.
Suggested change
| * 什麼是根 component 檔案 | |
| * 什麼是 root component 檔案 |
| ## 根 component 檔案 {/*the-root-component-file*/} | ||
|
|
||
| In [Your First Component](/learn/your-first-component), you made a `Profile` component and a `Gallery` component that renders it: | ||
| 在 [你的第一個 Component](/learn/your-first-component) 中,你創建了一個 `Profile` component,並且 render 在 `Gallery` component 裡: |
Member
There was a problem hiding this comment.
I think we can keep the render instead of translate it to Mardian.
Suggested change
| 在 [你的第一個 Component](/learn/your-first-component) 中,你創建了一個 `Profile` component,並且 render 在 `Gallery` component 裡: | |
| 在 [你的第一個 Component](/learn/your-first-component) 中,你建立了一個 `Profile` component,並且 render 在 `Gallery` component 裡: |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
[Beta] Traditional Chinese Translation Progress #260
Translation beta document - Importing and Exporting Components