Skip to content

Supporting dynamic nav group item #24

Open
@soomtong

Description

@soomtong

How can i use dynamic list of in
without modifying package

<NavGroup>
  {results.map(function(result) {
    return <NavGroupItem key={result.id} eventKey={result.id} glyph={result.glyph} text={result.title}>{result.text}</NavGroupItem>;
  })}
</NavGroup>

that results like this

Uncaught TypeError: Cannot read property 'eventKey' of undefined

any suggestion?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions