React-bootstrap-table: Warning: child components should not mutate

I use this short example snippet in my code

<BootstrapTable data={products}> <TableHeaderColumn dataField="id" isKey={true}>Product ID</TableHeaderColumn> <TableHeaderColumn dataField="name">Product Name</TableHeaderColumn> <TableHeaderColumn dataField="price">Product Price</TableHeaderColumn> </BootstrapTable> 

And everything works fine. There is a table, there is data. But (!) I see the following warning in my Chrome console:

enter image description here

whereas if I use my own elements, no warnings exist ..
What's wrong? How to fix it?

+5
source share

All Articles