mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-22 08:53:29 +08:00
docs: update v5-patch-for-react-19 install (#52504)
This commit is contained in:
parent
8ed7e502fb
commit
d8b8659fe8
@ -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
|
||||
|
||||
|
@ -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>
|
||||
|
||||
在应用入口处引入兼容包
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user