Why is exporting/importing default ES module properties faster than names module properties?

馋奶兔 提交于 2019-12-01 18:31:23

The key thing is not whether the module has a default export or not, but the fact that you import a module that includes all the Material UI Components (the material-ui module) instead of the module that includes only the RaisedButton component (the material-ui/RaisedButton module).

To be absolutely clear: We should be using the module that only includes a single component, i.e. material-ui/RaisedButton.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!