Skip to content
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(cn): translate content/docs/design-principles.md into Chinese #145

Merged
merged 21 commits into from Jun 15, 2019

Conversation

thjttk
Copy link
Contributor

@thjttk thjttk commented Feb 27, 2019

No description provided.

@thjttk thjttk mentioned this pull request Feb 27, 2019
@netlify
Copy link

netlify bot commented Feb 27, 2019

Deploy preview for cn-reactjs ready!

Built with commit 052c55f

https://deploy-preview-145--cn-reactjs.netlify.com

@netlify
Copy link

netlify bot commented Feb 27, 2019

Deploy preview for zh-hans-reactjs ready!

Built with commit 052c55f

https://deploy-preview-145--zh-hans-reactjs.netlify.com

@QC-L QC-L added the Pending Review 已翻译,待校对阶段 label Feb 27, 2019
@fonkie fonkie requested review from postor and yuqingc May 10, 2019 06:52
Copy link
Member

@yuqingc yuqingc left a comment

Choose a reason for hiding this comment

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

总体翻译很好,除了一些格式的问题

content/docs/design-principles.md Outdated Show resolved Hide resolved
content/docs/design-principles.md Outdated Show resolved Hide resolved
content/docs/design-principles.md Outdated Show resolved Hide resolved
content/docs/design-principles.md Outdated Show resolved Hide resolved
content/docs/design-principles.md Outdated Show resolved Hide resolved
content/docs/design-principles.md Outdated Show resolved Hide resolved
content/docs/design-principles.md Outdated Show resolved Hide resolved
content/docs/design-principles.md Outdated Show resolved Hide resolved
content/docs/design-principles.md Outdated Show resolved Hide resolved
content/docs/design-principles.md Outdated Show resolved Hide resolved
content/docs/design-principles.md Outdated Show resolved Hide resolved

This is a subtle distinction but a powerful one. Since you don't call that component function but let React call it, it means React has the power to delay calling it if necessary. In its current implementation React walks the tree recursively and calls render functions of the whole updated tree during a single tick. However in the future it might start [delaying some updates to avoid dropping frames](https://github.com/facebook/react/issues/6170).
这是个很小的区别但很强大。因为你不需要调用组件方法而是让 React 调用它,这意味着如果必要 React 可以延迟调用。在 React 当前的实现中,React 在单个 tick 周期中递归地走完这棵树,然后调用整个更新后树的渲染方法。但是以后 React 可能会[延迟一些更新操作来防止掉帧](https://github.com/facebook/react/issues/6170)
Copy link
Collaborator

Choose a reason for hiding this comment

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

建议 虽然只是微小的区别,但这样做意义重大

content/docs/design-principles.md Outdated Show resolved Hide resolved
content/docs/design-principles.md Outdated Show resolved Hide resolved
content/docs/design-principles.md Outdated Show resolved Hide resolved
content/docs/design-principles.md Outdated Show resolved Hide resolved
thjttk and others added 17 commits June 10, 2019 23:45
Co-Authored-By: Yuqing Chen <mr.chenyuqing@live.com>
Co-Authored-By: Yuqing Chen <mr.chenyuqing@live.com>
Co-Authored-By: Yuqing Chen <mr.chenyuqing@live.com>
Co-Authored-By: Yuqing Chen <mr.chenyuqing@live.com>
Co-Authored-By: Yuqing Chen <mr.chenyuqing@live.com>
Co-Authored-By: Yuqing Chen <mr.chenyuqing@live.com>
Co-Authored-By: Yuqing Chen <mr.chenyuqing@live.com>
Co-Authored-By: Yuqing Chen <mr.chenyuqing@live.com>
Co-Authored-By: Yuqing Chen <mr.chenyuqing@live.com>
Co-Authored-By: QiChang Li <github@liqichang.com>
Co-Authored-By: Yuqing Chen <mr.chenyuqing@live.com>
Co-Authored-By: Yuqing Chen <mr.chenyuqing@live.com>
Copy link
Member

@yuqingc yuqingc left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@QC-L QC-L left a comment

Choose a reason for hiding this comment

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

LGTM

@QC-L QC-L changed the title Contributing/Design Principles docs(cn): translate content/docs/design-principles.md into Chinese Jun 15, 2019
@QC-L QC-L requested a review from postor June 15, 2019 03:20
@QC-L QC-L merged commit 0a55de7 into reactjs:master Jun 15, 2019
@awxiaoxian2020 awxiaoxian2020 removed the Pending Review 已翻译,待校对阶段 label Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants