From 69a5be7c40d0ff18a98bf54b9e0a609ff8c16e57 Mon Sep 17 00:00:00 2001 From: einq7 <50612752+AlanCutFlim@users.noreply.github.com> Date: Thu, 4 Feb 2021 10:56:24 +0800 Subject: [PATCH] docs: Update FAQ (#29210) * docs: Modify FAQ * Components don't need to use inline code * Update anchors * Apply suggestions from code review Co-authored-by: afc163 * Apply suggestions from code review Co-authored-by: afc163 * Update more links Co-authored-by: afc163 --- docs/react/faq.en-US.md | 6 +++--- docs/react/faq.zh-CN.md | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/react/faq.en-US.md b/docs/react/faq.en-US.md index 0140741535..6608544f10 100644 --- a/docs/react/faq.en-US.md +++ b/docs/react/faq.en-US.md @@ -49,7 +49,7 @@ antd use shallow compare of props to optimize performance. You should always pas ### After I set the `value` of an `Input`/`Select`(etc.) component, the value cannot be changed by user's action. -Try `defaultValue` or `onChange` to change `value`, and please read [React's documentation](https://facebook.github.io/react/docs/forms.html#controlled-components). +Try `onChange` to change `value`, and please read [React's documentation](https://reactjs.org/docs/forms.html#controlled-components). ### Components are not vertically aligned when placed in single row. @@ -59,7 +59,7 @@ Try [Space](https://ant.design/components/space/) component to make them aligned Yes, antd is designed to help you develop a complete background application. To do so, we override some global styles for styling convenience, and currently these cannot be removed or changed. More info at https://github.com/ant-design/ant-design/issues/4331 . -Alternatively, follow the instructions in [How to avoid modifying global styles?](docs/react/customize-theme#How-to-avoid-modifying-global-styles-?) +Alternatively, follow the instructions in [How to avoid modifying global styles?](/docs/react/customize-theme#How-to-avoid-modifying-global-styles) ### I cannot install `antd` and `antd`'s dependencies in mainland China. @@ -116,7 +116,7 @@ Or you can simply upgrade to [antd@4.0](https://github.com/ant-design/ant-design Static methods like message/notification/Modal.confirm are not using the same render tree as `