Skip to content

Cannot combine <Button> and map in VStack/HStack children #10

@mkapal

Description

@mkapal

Map only - OK:

<VStack left={50} top={20} width={20} height={5}>
  {items.map((item) => (
    <Button key={item.id}>
      {item.name}
    </Button>
  ))}
</VStack>

Button + map - error:

<VStack left={50} top={20} width={20} height={5}>
  <Button>Caption</Button>
  {items.map((item) => (
    <Button key={item.id}>
      {item.name}
    </Button>
  ))}
</VStack>
image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions