我对正在发生的事情有所了解,但我觉得我错过了一些东西。这是看起来给我带来问题的代码
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;
}