Migrating from Material-UI v4 to v5
Migrating from rocket-webapp-components to rocket-ui
Last updated
Migrating from rocket-webapp-components to rocket-ui
Last updated
Upgrade solution using latest version of our webapp generator.
Below there is a list with all MUI packages and their new version, in case generator doesn't cover all Material-UI packages that you use.
This version includes:
Material-UI packages at v5.x
React and React-DOM at v17.x
Tss-React and Emotion packages that are needed for new MUI version
New bit packages (core & themes)
Refactored styles and infrastructure components
The style library used by default in v5 is Emotion, which is also what we recommend. JSS itself is no longer supported in MUI. However, if you like the hook-based API (makeStyles → useStyles) that react-jss was offering you can opt for tss-react.
To continue using makeStyles
these are the necessary changes:
Install tss-react
package
Import makeStyles
from tss-react
package
Call makeStyles
classes
3. After upgrading using generator webapp-rocket and change all makeStyles (if any) usage, we recommend to upgrade each feature in your project with components from bit.
‼ For each component we created a changelog that contains breaking-changes, new features and other modifications in order to make this upgrade easier. For example: Buttons
Check out our new components library for more information
4. Fix breaking changes in raw Material-UI components (if it's the case).
If you're using any raw Material-UI components, check out their migration guide here: