React 导入组件前段浏览器报错 “Cannot read property 'Component' of undefined”时间:2023-03-09 08:53:40 问题出在这个花括号上,当你写{React}的时候,他只会导入React,并不会导入下面你要用到的Component组件, 所以,将括号去掉就可以了。 别忘记保存。