Material-Ui 和 Material-Ui-Next 的区别 [英] Difference between Material-Ui and Material-Ui-Next
问题描述
我正在尝试在我的项目中添加 Material-Ui React 组件,但我对这两个网站/库感到困惑.
I am trying to add Material-Ui React components in my project and I'm confused with these 2 websites / libraries.
Material-Ui-Next -> https://material-ui-next.com/
Material-Ui-Next -> https://material-ui-next.com/
Material-Ui -> http://www.material-ui.com
Material-Ui -> http://www.material-ui.com
两个网站都有一个到 Github 的链接 - https://github.com/mui-org/材质-ui
Both websites have a link to Github - https://github.com/mui-org/material-ui
它们是相同的还是不同的?他们都使用 import {something} from 'material-ui/xxx'
来导入组件.
Are they same or different? Both of them are using import {something} from 'material-ui/xxx'
to import the components.
我很困惑,我应该在我的项目中学习/使用哪一个.你能推荐吗?
I'm confused and which one I should learn/use in my project. Can you suggest?
推荐答案
Material-UI Next 处于预发布阶段,因此您可以期待每个新版本都可能发生重大变化.但它只是 Material-UI 的第 2 版,它比之前的版本有相当多的改进.
Material-UI Next is in pre-release, so you can expect possible breaking changes with each new release. But it is simply version 2 of Material-UI, it has quite a bit of improvements over the previous version.
比如可以对比Material的Drawer
api-UI 和 Material-UI Next.
For example, you can compare the Drawer
api of Material-UI and Material-UI Next.
我建议您阅读 路线图,他们解释了他们决定的原因使用 Material-UI Next 从头开始.主要是,
I'd recommend reading the Roadmap, they explain why they decided to start from the ground up with Material-UI Next. Mainly,
Material-UI 是 3 年前开始的.生态系统已经进化了很多从那时起,我们也学到了很多东西.@nathanmarks 开始了雄心勃勃的任务,从头开始重建 Material-UI利用这些知识来解决长期存在的问题.
Material-UI was started 3 years ago. The ecosystem has evolved a lot since then, we have also learned a lot. @nathanmarks started an ambitious task, rebuilding Material-UI from the ground-up taking advantage of this knowledge to address long-standing issues.
Material-UI Next 是未来将继续开发的内容,所以我个人会这样做.
Material-UI Next is what will continue to be developed moving forward, so I'd personally go with that.
这篇关于Material-Ui 和 Material-Ui-Next 的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!