We keep the best compatibility. There is nothing must to do with the upgrade.
We move Layout into single component in Ant Design 4.0. You can consider to replace Layout with latest Layout component.
npm i @ant-design/pro-layout --save
yarn add @ant-design/pro-layout
src/layouts folder. Use latest
BasicLayout.tsx to replace it.
If you modified origin
BasicLayout, you should apply your code logic into replaced file.