首页 > 解决方案 > 错误:购物车(...):渲染没有返回任何内容

问题描述

我对正在发生的事情有所了解,但我觉得我错过了一些东西。这是看起来给我带来问题的代码

购物车.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;
      }

标签: javascriptreactjs

解决方案


推荐阅读