docs: Add mutable data warning (#23696)

This commit is contained in:
二货机器人 2020-04-28 12:19:15 +08:00 committed by GitHub
parent 156ff7652c
commit 3967f12f3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -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 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

View File

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