Here is a code:
render() {
return (
<div
<div className="container-center">
<div className="container-center-inner">
<div>
<div className="container-checkout">
<div>
<div className="container-cart">
{
this.props.cartStore.items.forEach(function(item, i, arr) {
return (
<div className="basket-item" key={i}>
<div>
<div className="basket-item-image">
<TShirt className="color-tshirt-small" width="130" height="176" images={item.cartItemTShirt.image} color={item.item.color} />
</div>
</div>
</div>
)
})
}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
);
}
Container "container-cart" is empty, but this.props.cartStore.items has values, and should work. When I try to execute code before return of render, the all working fine, but when I place it into return, it returns nothing. I think something wrong in loop, but I dont know, any help?