Skip to content

Commit

Permalink
docs(faq-en): typo,grammar and mispelling fixes (ant-design#40368)
Browse files Browse the repository at this point in the history
  • Loading branch information
therealrinku authored and RedJue committed Apr 25, 2023
1 parent ca89857 commit d9be040
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/react/faq.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Here are the frequently asked questions about Ant Design and antd that you shoul

## Is there a difference between `undefined` and `null` in the controlled components of `antd`?

**Yes. antd will treats `undefined` as uncontrolled but `null` as controlled components which means empty value of it.**
**Yes. antd will treat `undefined` as uncontrolled but `null` as controlled component which means empty value of it.**

As input element, React treats both `undefined` and `null` as uncontrolled. When the `value` is converted from a valid value to `undefined` or `null`, the component is no longer controlled, which causes some unexpected cases.

Expand All @@ -19,7 +19,7 @@ Note: For `options` in `Select-like` components, it is **strongly recommended no

## Can I use internal API which is not documented on the site?

NOT RECOMMEND. Internal API is not guaranteed to be compatible with future versions. It may be removed or changed in some versions. If you really need to use it, you should to make sure these API is still valid when upgrading to a new version or just lock version for usage.
NOT RECOMMENDED. Internal API is not guaranteed to be compatible with future versions. It may be removed or changed in some versions. If you really need to use it, you should make sure these APIs are still valid when upgrading to a new version or just lock version for usage.

## Why API request should be strict discussion?

Expand Down Expand Up @@ -126,15 +126,15 @@ type DataSource = TableProps['dataSource'];

## Date-related components locale is not working?

Please check whether import dayjs locale correctly.
Please check whether you have imported dayjs locale correctly.

```jsx
import 'dayjs/locale/zh-cn';

dayjs.locale('zh-cn');
```

Please check whether there is two version of dayjs installed.
Please check whether there are two versions of dayjs installed.

```jsx
npm ls dayjs
Expand Down

0 comments on commit d9be040

Please sign in to comment.