diff --git a/docs/react/faq.en-US.md b/docs/react/faq.en-US.md index baaaf012a6e7..2ba15d870dbb 100644 --- a/docs/react/faq.en-US.md +++ b/docs/react/faq.en-US.md @@ -113,6 +113,8 @@ Yes, you can [import `antd` with script tag](https://ant.design/docs/react/intro If you need some features which should not be included in antd, try to extend antd's component with [HOC](https://gist.github.com/sebmarkbage/ef0bf1f338a7182b6775). [more](https://medium.com/@dan_abramov/mixins-are-dead-long-live-higher-order-components-94a0d2f9e750#.eeu8q01s1) +antd will have a strict discussion on the demand for new components to prevent API corruption and become [historical debt](/docs/blog/historical-debt). And it is also more inclined to provide atomic capabilities for APIs so that developers can customize the features they need more flexibly. + ## How to get the definition which is not export? antd expose the basic component definitions. For the unexposed props, you can get them via the utility types provided by antd. For example: diff --git a/docs/react/faq.zh-CN.md b/docs/react/faq.zh-CN.md index 1ae0f04450cb..0fe48d7b0d28 100644 --- a/docs/react/faq.zh-CN.md +++ b/docs/react/faq.zh-CN.md @@ -135,6 +135,8 @@ antd 内部会对 props 进行浅比较实现性能优化。当状态变更, 如果你需要一些 antd 没有包含的功能,你可以尝试通过 [HOC](https://gist.github.com/sebmarkbage/ef0bf1f338a7182b6775) 拓展 antd 的组件。 [更多](https://medium.com/@dan_abramov/mixins-are-dead-long-live-higher-order-components-94a0d2f9e750#.eeu8q01s1) +antd 对新增组件需求会进行严格的讨论,以防止 API 腐败而变为[历史债务](/docs/blog/historical-debt)。antd 侧对于 API 也更倾向于提供原子化的能力使开发者可以更灵活的定制自己所需要的功能。 + ## 如何获取未导出的属性定义? antd 会透出基本组件定义。对于未透出属性,你可以通过 antd 提供的工具类型来获取。例如: