-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: translation Importing and Exporting Components #369
docs: translation Importing and Exporting Components #369
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 重複應用在更多地方。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 檔案 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* 什麼是根 component 檔案 | |
* 什麼是 root component 檔案 |
|
||
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 裡: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can keep the render
instead of translate it to Mardian.
在 [你的第一個 Component](/learn/your-first-component) 中,你創建了一個 `Profile` component,並且 render 在 `Gallery` component 裡: | |
在 [你的第一個 Component](/learn/your-first-component) 中,你建立了一個 `Profile` component,並且 render 在 `Gallery` component 裡: |
[Beta] Traditional Chinese Translation Progress #260
Translation beta document - Importing and Exporting Components