Browse Source

docs: Add mutable data warning (#23696)

pull/23700/head
二货机器人 5 years ago
committed by GitHub
parent
commit
3967f12f3d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      docs/react/migration-v4.en-US.md
  2. 1
      docs/react/migration-v4.zh-CN.md

1
docs/react/migration-v4.en-US.md

@ -32,6 +32,7 @@ This document will help you upgrade from antd `3.x` version to antd `4.x` versio
- The minimum supported version of IE is IE 11. - The minimum supported version of IE is IE 11.
- The minimum supported version of React is React 16.9, and some components have started to refactor using hooks. - The minimum supported version of React is React 16.9, and some components have started to refactor using hooks.
- Internal using `useMemo` for performance, do not use mutable data as props.
#### Remove deprecated API #### Remove deprecated API

1
docs/react/migration-v4.zh-CN.md

@ -32,6 +32,7 @@ title: 从 v3 到 v4
- IE 最低支持版本为 IE 11。 - IE 最低支持版本为 IE 11。
- React 最低支持版本为 React 16.9,部分组件开始使用 hooks 进行重构。 - React 最低支持版本为 React 16.9,部分组件开始使用 hooks 进行重构。
- 重构通过 `useMemo` 进行性能优化,请勿使用 mutable data 作为参数。
#### 移除废弃的 API #### 移除废弃的 API

Loading…
Cancel
Save