Migration Guide for v2.x -> v3.0.0
MaterialUi is now Mui
We changed the namespace from
Mui in 3.0.0 for the following
- Nice and short 🙂
- Material-UI rebranded to MUI
- Now that we are using the
namespacefeature, it is not possible anymore to "alias" the
include MaterialUi. This gives the following error:
Mui is compiled in script mode while its dependent is not.
- 3.0.0 already has other breaking changes anyway.
Furthermore, the lab bindings now have their own namespace under
These are mainly due to the stricter focus on zero-cost bindings.
Mangled names utilize the
_InputProps is now
_type="number" is now
Polymorphic variants are now all lowercase
color=#Primary is now
anyUnpack have been replaced
These type helpers now reside under
Mui.Any. Refer to
Children types are more specific
Previously it was possible to put arbitrary types (such as strings) into
children. Now the children type is
React.element, which streamlines this
library to the
Therefore, you now need to wrap strings with the
React.string function, or
pass arrays to
Did we miss anything?
If there are any problems with this new release, feel free to open an issue.
Will you upgrade to v5 as well?
We are in no rush to do it, because we currently use v4 in most of our projects. If we ever feel the need to upgrade, we will upgrade this repository accordingly.