首页 > 其他 > 详细

记录一下react开发过程中常见报错,警告以及解决的方法

时间:2020-08-06 12:23:12      阅读:95      评论:0      收藏:0      [点我收藏+]
  1. 报错: Uncaught Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: object. You likely forgot to export your component from the file it‘s defined in, or you might have mixed up default and named imports.  

   报这个错的原因是,创建了react组件之后没有使用export default对外暴露就在父组件中应用该,使用export default暴露出去就可以了哦!

 

 

         ......持续更新中

 

记录一下react开发过程中常见报错,警告以及解决的方法

原文:https://www.cnblogs.com/zhang-jiao/p/13444859.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!