开发者社区 问答 正文

react 报错

Uncaught TypeError: Cannot call a class as a function

展开
收起
萌萌茹 2021-10-20 17:50:30 6937 分享 版权
2 条回答
写回答
取消 提交回答
  • 请确保你的Component继承了React.Component,否则你使用React语法就会出错

    2021-10-22 10:50:39
    赞同 展开评论
  • 请确保你的Component继承了React.Component,否则你使用React语法就会出错

    2021-10-20 17:50:43
    赞同 展开评论
问答分类:
问答地址: