问题是渲染方法。 '检查“ EducationBlock”的渲染方法。

时间:2019-07-01 07:03:38

标签: javascript reactjs

在EducationBlock中,出现以下错误:

react-dom.development.js:56 Uncaught (in promise) Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

Check the render method of `EducationBlock`.

这就是我的导入方式

import EducationBlock from './EducationBlock';

这就是我的出口方式

class EducationBlock extends Component {...}

export default withStyles(styles)(EducationBlock);

0 个答案:

没有答案