折翼的飞鸟

导航

2018年8月10日 #

React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined.

摘要: 昨天在项目中,重新封装组件时,引用了原来的一个子组件,但发现子组件在其他页面正常,在新的组件里面就发生保存, 然后把子组件注释,随便显示其div元素也正常,纠结了很久,最后发现引用的方式有问题 子组件创建是用 export class BaseComponent extends Component 阅读全文

posted @ 2018-08-10 09:48 折翼的飞鸟 阅读(11697) 评论(0) 推荐(1) 编辑