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...
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.