AllenFang / AllenFang/react-bootstrap-table

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

Aberta
#1,960 0 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
JavaScript
Estrelas
2.2k
Forks
761
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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)
```

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.