TypeError:在React中编写函数时Object(...)不是函数

时间:2019-05-30 10:21:20

标签: javascript reactjs material-ui

 const useStyles1 = makeStyles(theme => ({
  success: {
    backgroundColor: green[600],
  },
  message: {
    display: 'flex',
    alignItems: 'center',
  },
  iconVariant: {
    opacity: 0.9,
    marginRight: theme.spacing(1),
  },
  icon: {
    fontSize: 20,
  }
}));

错误出现在第一行。我试过更改react和react dom的版本。当前版本是
“ react”:“ ^ 16.8.6”,     “ react-dom”:“ ^ 16.8.6”,

0 个答案:

没有答案