Ant Design Pro 4.0 is compatible with all the features of 2.0, and upgrading from 2.0 to 4.0 does not require any changes.
In Ant Design Pro 4.0, we abstracted the Layout into a separate single component, if you wish to replace your current layout with this new one. Read more on how to do so below:
Using npm or yarn, install the new
npm i @ant-design/pro-layout --save
yarn add @ant-design/pro-layout
To replace the
BasicLayout component, delete
BasicLayout.less in the
src/layouts directory, and put in it's place the latest
Note: if you had modified the original
BasicLayoutcomponent, you'll need to also apply your same changed logic in the replacement file as well.