【发布时间】:2020-05-17 04:25:25
【问题描述】:
所以我正在尝试使用 react 构建登录页面,在我的代码中我得到了未定义的错误组件。
const http = new HttpService();
class App extends Componenet {
constructor(props) {
super(props);
http.getProducts();
}
}
不知道我做错了什么,因为我是新手,希望得到一些帮助
【问题讨论】:
-
请在您的问题中添加完整的错误信息
-
检查你的组件拼写“componenet”
-
请添加更多您的应用程序组件的代码和您要导入它的代码
标签: reactjs components