问题描述
我的应用程序是使用旧版材料UI(即V0.20)开发的,现在我打算将材料UI版本升级到最新版本,并向应用程序添加新模块.我怀疑开发的应用程序是否可能由于新的用户界面升级而中断?
My application was developed in older version of material UI i.e.,V0.20 and now I am planning to upgrade the material UI version to latest and add new modules to the application. I have a doubt is there any chance the developed application might break because of the new material UI upgrade?
推荐答案
您需要阅读文档中的两个迁移指南.
You need to go through the two migration guides in the documentation.
- https://material-ui.com/guides/migration-v0x/一个>
- 本指南介绍了从v0.x迁移到v1
- 本指南介绍了从v3迁移到v4
没有版本2,该库从 v1到v3 ,以匹配
@material-ui/icons
的版本. v3中唯一的重大变化是图标的导入方式.There wasn't a version 2 and the library jumped from v1 to v3 in order to match the version of
@material-ui/icons
. The only breaking change in v3 was how icons should be imported.这篇关于材质UI版本0.20升级到v4.3.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!