Upgrade to V4

Last updated on 2020-05-16 18:24:03

Upward Compatibility

We keep the best compatibility. There is nothing must to do with the upgrade.

Optional Upgrade

We move Layout into single component in Ant Design 4.0. You can consider to replace Layout with latest Layout component.

Install Dependencies

npm i @ant-design/pro-layout --save


yarn add @ant-design/pro-layout

Replace BasicLayout

Delete BasicLayout.js and BasicLayout.less under src/layouts folder. Use latest BasicLayout.tsx to replace it.

If you modified origin BasicLayout, you should apply your code logic into replaced file.