I'm a bit confused on material ui v5.5.2 on how to useStyles(). This website says deprecated but if so how do you still use this?
https://mui.com/styles/basics/ ⚠️ @mui/styles is the legacy styling solution for MUI. It depends on JSS as a styling solution, which is not used in the @mui/material anymore, deprecated in v5. If you don't want to have both emotion & JSS in your bundle, please refer to the @mui/system documentation which is the recommended alternative.
It says something about @mui/system but don't quite understand.
this is my old code. should it be changing all of this?
const drawerWidth = 200; //240
const useStyles = makeStyles(() => {
return {
page: {
background: "#f1f1f1",
width: "100%",
// padding: useTheme().spacing(3),
},
// drawer: {
// width: drawerWidth,
// backgroundColor: "red",
// },
drawerPaper: {
width: drawerWidth,
},
root: {
display: "flex",
},