Good day, I am trying out Material UI and right now I am facing issues where I try to create "useStyles" using the makeStyles module. Here is the code: App.js code
Here is the package.json file code
I don't know whether I am doing something wrong or if I haven't imported something correct, can y'all help me out?
CodePudding user response:
makeStyles is not longer exported from @mui/material/styles. It is now export from @mui/styles.
Here:
Install: npm install @mui/styles
Then Import:
import { makeStyles } from '@mui/styles';