DEV Community

Discussion on: A 55% Performance Improvement Upgrading Material-UI from v4 to v5

Collapse
 
lani78 profile image
Niklas Lagergren • Edited

Hi,

I just wanted to point out that the styled method from either @mui/system or @mui/masterial/styles is perfectly fine to use when it comes to React 18 and strict mode compatablitity.

It is documented as one of the aproaches when migrating from the old styling solution, with a codemod available: mui.com/guides/migration-v4/#migra...

It is also what MUI uses under the hood themselves for their standard material components: github.com/mui-org/material-ui/blo...

The old styling solution is in the @mui/styles package. So as long as you do not use/install that package you're fine.