React错误消息不会构造我的代码
我对道路和终点站感到迷惑……
我已经尝试更改应用程序的名称,但不起作用
https://gist.github.com/patrowheels/fece9597d6862094a1a3672b9d6cdecf
发布于 2020-07-21 08:09:47
您将导入为:
import Header from "./components/Header"
import MainContent from "./components/MainContent"
import Footer from "./components/Footer"然而,您说您的文件名是header.js、footer.js等。
尝试导入为:
import Header from "./components/header.js"
import MainContent from "./components/maincontent.js"
import Footer from "./components/footer.js"所以文件名匹配。
https://stackoverflow.com/questions/63004887
复制相似问题