-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Conversation
Deploy preview for cn-reactjs ready! Built with commit 052c55f |
Deploy preview for zh-hans-reactjs ready! Built with commit 052c55f |
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.
总体翻译很好,除了一些格式的问题
content/docs/design-principles.md
Outdated
|
||
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)。 |
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.
建议 虽然只是微小的区别,但这样做意义重大
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>
…ans.reactjs.org into design-principles
Co-Authored-By: Yuqing Chen <mr.chenyuqing@live.com>
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.
LGTM
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.
LGTM
No description provided.