Skip to content

docs: translation Importing and Exporting Components - #369

Closed
JamieLoLo wants to merge 3 commits into
reactjs:mainfrom
JamieLoLo:docs/importing-and-exporting-components
Closed

JamieLoLo wants to merge 3 commits into
reactjs:mainfrom
JamieLoLo:docs/importing-and-exporting-components

Conversation

@JamieLoLo

Copy link
Copy Markdown
Contributor

[Beta] Traditional Chinese Translation Progress #260
Translation beta document - Importing and Exporting Components

rayatn1011

This comment was marked as outdated.

<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 重複應用在更多地方。

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 檔案

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 裡:

Copy link
Copy Markdown
Member

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.

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

3 active (2 outdated) deployments
Preview – zh-hant-legacy-reactjs-org — 7eafd362 Deployed May 14, 2023 by vercel[bot]
Preview – zh-hant.reactjs.org — 06e3f469 Deployed Apr 4, 2023 by vercel[bot]
Preview – zh-hant-beta-reactjs-org — 06e3f469 Deployed Apr 4, 2023 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants