错误:购物车(...):渲染没有返回任何内容

时间:2021-04-19 21:43:44

标签: javascript reactjs

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

Cart.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

这是编译器正在标记的代码块

App.js

      } else {
        UserStore.loading = false;
        UserStore.isloggedIn = false;
      }

0 个答案:

没有答案