假设我们使用 React-Bootstrap 中的 Row ......我们如何在不使用包装器或内部元素的情况下对其进行样式设置:
<Row>
<div className='some-style'>
...
</Row>
理想情况下,我们可以这样做:
<Row className='some-style'>
...
</Row>
但这不起作用,我认为这是因为React-Bootstrap不知道组件className内的位置<Row>(它应该只设置<div>具有行样式的样式)。