javascript - 错误:购物车(...):渲染没有返回任何内容
问题描述
我对正在发生的事情有所了解,但我觉得我错过了一些东西。这是看起来给我带来问题的代码
购物车.js
const Cart = () => {
const classes = ''
const renderEmptyCart = () => (
<Typography variant = "subtitle1"> You have no items in your shopping cart,
<Link href = "/Pages/Records"> start adding some! </Link>
</Typography>
)
}
export default Cart
这是编译器标记的代码块
应用程序.js
} else {
UserStore.loading = false;
UserStore.isloggedIn = false;
}
解决方案
推荐阅读
- google-apps-script - 当用户开始输入时计算文档中的单词
- java - HTML 和 CSS 中的 Apache Wicket 实时预览更改
- string - 如何在 Golang 中解决(字符串和字节类型不匹配)
- javascript - 优化排列生成
- c++ - 在 python ctypes 中声明变量并传递给 dll 函数
- python - 将脚本转换为 exe 时键盘模块出现溢出错误
- sql - CONCAT 列 SQL
- reactjs - 刷新页面时在服务器上反应应用程序显示 404 页面
- python - 使用 Boto 访问 S3 文件的 URL
- php - 如何制作动态路由系统?