Should I wait for material-ui v1 or can I use the pre-release now?

烈酒焚心 提交于 2019-12-11 05:14:11

问题


Building a React.js dashboard (data tables + graphs) and styling this using material-ui. If I use the pre-release version right now, will I have make more changes when the v1 of material-ui is released?


回答1:


I'd recommend migrating as soon as you can. It is not trivial, but you pay that price once to use the new features (like the new approach to style, CSS API, built in grid system/breakpoints, etc). Any changes made to v1 should be easier to deal with as releases roll out. Generally, the release notes identify all of the changes, highlighting the breaking changes (if any were merged).

Check the documentation and make sure all of the components you're using have been implemented. If you find that v1 hasn't implemented a component you depend on, you have a few options:

  1. Implement it and submit a PR :)
  2. Implement a temporary version and wait for the official implementation
  3. Run both versions of material-ui side by side using yarn aliases or by adding your own fork of material-ui as a git dependency/private package


来源:https://stackoverflow.com/questions/45493755/should-i-wait-for-material-ui-v1-or-can-i-use-the-pre-release-now

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