Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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