简体   繁体   English

只安装 React Material UI 的某些组件

[英]Only install certain components of React Material UI

Is there a way to only install certain components of React Material UI.有没有办法只安装 React Material UI 的某些组件。 Especially the AutComplete component?尤其是AutComplete组件?

More than "Installing", what you are looking for seems to be only adding the components you use to your final bundle when your app is built, otherwise known as Treeshaking.除了“安装”之外,您正在寻找的似乎只是在构建应用程序时将您使用的组件添加到最终包中,也称为 Treeshaking。

There's a guide in the documentation about this that might help you out.文档中有一个关于此的指南可能会对您有所帮助。

https://mui.com/material-ui/guides/minimizing-bundle-size/ https://mui.com/material-ui/guides/minimizing-bundle-size/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM