docs: update v5-patch-for-react-19 install (#52504)

This commit is contained in:
lijianan 2025-01-21 10:35:26 +08:00 committed by GitHub
parent 8ed7e502fb
commit d8b8659fe8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 6 deletions

View File

@ -28,9 +28,7 @@ You can choose one of the following methods, and it is recommended to use the co
Install the compatibility package
```bash
npm install @ant-design/v5-patch-for-react-19
```
<InstallDependencies npm='npm install @ant-design/v5-patch-for-react-19 --save' yarn='yarn add @ant-design/v5-patch-for-react-19' pnpm='pnpm add @ant-design/v5-patch-for-react-19 --save' bun='bun add @ant-design/v5-patch-for-react-19'></InstallDependencies>
Import the compatibility package at the application entry

View File

@ -28,9 +28,7 @@ antd v5 默认兼容 React 16 ~ 18 版本,对于 React 19 版本,可以使
安装兼容包
```bash
npm install --save-dev @ant-design/v5-patch-for-react-19
```
<InstallDependencies npm='npm install @ant-design/v5-patch-for-react-19 --save' yarn='yarn add @ant-design/v5-patch-for-react-19' pnpm='pnpm add @ant-design/v5-patch-for-react-19 --save' bun='bun add @ant-design/v5-patch-for-react-19'></InstallDependencies>
在应用入口处引入兼容包