我正在使用 React Bootstrap 并尝试遍历位于两个单独列中的内容,如下所示:
<Container>
<Row>
{this.state.products.map(product => (
<Col md={8}>
<div className="title">{product.name}</div>
<div className="desc">{product.description}</div>
</Col>
<Col md={4}>
<div className="price">{product.price}</div>
</Col>
))}
</Row>
</Container>
我有结束标签,所以不知道为什么会收到错误消息?