报错详情如下
Error: 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.
目录结构
报错原因是没有将 index.js抛出
在index.js文件中加入
export default Home;