AllenFang / AllenFang/react-bootstrap-table

Warning: Each child in an array or iterator should have a unique "key" prop

Aperta
#1,960 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
2.2k
Fork
761
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hey
I got my render here and each child get it's key prop but the below warning shows up on `tbody`.
Am I missing something?
Thanks!

```
render() {
const { health, platforms } = this.props;
const options = {
expandRowBgColor: 'rgb(242, 255, 163)'
};
return (

{[
,

Feature
,
...platforms.map(platform => {
const { device, os, osVersion, browser, browserVersion } = platform;
const key = JSON.stringify(platform);
return (

{`${device === 'desktop' ? '' : device} ${os} ${osVersion}`}
{' '}
{`${browser || ''} ${browserVersion || ''}`}

);
})
]}

);
}
```

```
Warning: Each child in an array or iterator should have a unique "key" prop. See https://fb.me/react-warning-keys for more information.
in tbody (created by TableBody)
in table (created by TableBody)
in div (created by TableBody)
in TableBody (created by BootstrapTable)
in div (created by BootstrapTable)
in div (created by BootstrapTable)
in BootstrapTable (at Health.js:41)
in _default (created by Connect(_default))
in Connect(_default) (created by Route)
in Route (at App.js:186)
in Router (at App.js:182)
in div (at App.js:181)
in section (at App.js:145)
in div (at App.js:57)
in App (created by Connect(App))
in Connect(App) (created by Route)
in Route (at index.js:13)
in Router (at index.js:12)
in Provider (at index.js:11)
```

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.