我应该等材料-ui v1还是现在可以使用预发布?

时间:2017-08-03 20:13:38

标签: material-ui

构建React.js仪表板(数据表+图表)并使用material-ui设置样式。如果我现在使用预发布版本,我会在发布material-ui的v1时进行更多更改吗?

1 个答案:

答案 0 :(得分:3)

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