Skip to content

Creating Table component using shorthand component causes "keys" warning #1205

Closed
@georges-hatem

Description

@georges-hatem

React / ReactDOM version: 15.4.2
Semantic UI React version: 0.64.3

Warnings:

  • Warning: Each child in an array or iterator should have a unique "key" prop. Check the render method of Table.
  • Warning: Each child in an array or iterator should have a unique "key" prop. Check the render method of TableRow.

The Codepen below does specify a key for each dataRow, but not for headerRow values.
Could that be the issue? If so, under what key should the header values be placed? (i tried turning headerRow into a dictionary, but the rendering would not know how to pick up the header vals)

http://codepen.io/khorkhe/pen/ggWEmm

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions