@ material-ui和material-ui之间的区别(不带符号) [英] Difference between @material-ui vs material-ui (without at-sign)

查看:243
本文介绍了@ material-ui和material-ui之间的区别(不带符号)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

(再次)从材料UI开始并做出反应.有两个软件包material-ui和@ material-ui,这是截至2019-07年的最佳起点(最新)?

Just starting (again) with material UI and react. There are two packages material-ui and @material-ui, which is the best starting point (latest) as of 2019-07 timeframe?

我认为它是基于...的npm install @material-ui/core. https://material- ui.com/getting-started/installation/. GIT仓库位于 https://github.com/mui-org/material-ui

I think it is npm install @material-ui/core based on ... https://material-ui.com/getting-started/installation/. The GIT repo is at https://github.com/mui-org/material-ui

简单的问题,希望是简单的答案.

Simple question, hopefully simple answer.

我看过的其他问题:

  • Use Create-React-App with Material UI - This answer says to use npm install --save material-ui but because it is 2 years old, I think it may be out of date.

Material-Ui和Material-Ui-之间的差异下一个

如何安装Material-UI无需安装material-ui的文档?

推荐答案

@material-ui/core是正确的选择.

如果您访问 https://www.npmjs.com/package/material-ui ,您会看到material-ui已过时. material-ui软件包中的最后一个稳定版本是0.20.2.对于1.0版,它已移至@material-ui/core(当前版本为4.1.3).

If you go to https://www.npmjs.com/package/material-ui, you'll see that material-ui is deprecated. The last stable version in the material-ui package was 0.20.2. For the 1.0 release it moved to @material-ui/core (and the current version is 4.1.3).

@material-ui范围用于以下软件包,这些软件包均在您引用的monorepo中进行管理(

The @material-ui scope is used for the following packages that are all managed within the monorepo you referenced (https://github.com/mui-org/material-ui):

  • @material-ui/core
  • @material-ui/icons
  • @material-ui/styles
  • @material-ui/system
  • @material-ui/lab
  • @material-ui/utils
  • @material-ui/types
  • @material-ui/docs
  • @material-ui/codemod

这篇关于@ material-ui和material-ui之间的区别(不带符号)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆