-
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/warnings/unknown-prop.md into Chinese #111
Conversation
Deploy preview for cn-reactjs ready! Built with commit 713848f |
content/warnings/unknown-prop.md
Outdated
|
||
--- | ||
|
||
To fix this, composite components should "consume" any prop that is intended for the composite component and not intended for the child component. Example: | ||
要解决这个问题,组合组件应该“消耗”任何用于复合组件的 prop,而不要用于子组件。例如: |
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.
要解决这个问题,组合组件应该“消耗”任何用于复合组件的 prop,而不要用于子组件。例如: | |
要解决这个问题,组合组件应该“处理”任何只用于复合组件的 prop,而不要用于子组件。例如: |
感觉用“处理”会比“消耗”更好理解,或许用“剥离”也可以,待讨论
加个“只”更有助于理解为什么不能让多余的props传入子组件。
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.
改进了一下(这句有点头疼
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.
- 文中关于 Good / Bad 需要确认下是否为通用译法 @QC-L
- 译文需检查一遍,保持与原文行数一致
- 部分建议见 comments
感谢参与翻译工作!
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.
Approved
https://stackblitz.com/edit/react-unknown-prop
无法重现这个 warning 可能是我例子写得不够高级…