Skip to content

Commit

Permalink
[docs] Document that @material-ui/styles is not strict mode friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Aug 7, 2021
1 parent 3161777 commit 7f3c5a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/src/pages/styles/basics/basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

<p class="description">You can use Material-UI's styling solution in your app, whether or not you are using Material-UI components.</p>

> **Note**: `@material-ui/styles` is the _**legacy**_ styling solution for Material-UI. It is deprecated in v5. It depends on [JSS](https://cssinjs.org/) as a styling solution, which is not used in the `@material-ui/core` anymore. If you don't want to have both emotion & JSS in your bundle, please refer to the [`@material-ui/system`](/system/basics/) documentation which is the recommended alternative.
> ⚠️ `@material-ui/styles` is the _**legacy**_ styling solution for Material-UI. It is deprecated in v5. It depends on [JSS](https://cssinjs.org/) as a styling solution, which is not used in the `@material-ui/core` anymore. If you don't want to have both emotion & JSS in your bundle, please refer to the [`@material-ui/system`](/system/basics/) documentation which is the recommended alternative.
> ⚠️ `@material-ui/styles` is not compatible with StrictMode nor will it be with React 18.
Material-UI aims to provide a strong foundation for building dynamic UIs.
For the sake of simplicity, **we expose the styling solution used in Material-UI components** as the `@material-ui/styles` package.
Expand Down

0 comments on commit 7f3c5a9

Please sign in to comment.