Skip to content

Loop through steps and render them? #86

@sebastianbilling

Description

@sebastianbilling

Hi!

I'm trying to loop through a bunch of steps and render them, but they are never rendered.

`<Route render={({ history }) => (

          <Wizard history={history}>
            <Steps>
              {steps.map((stepdata, index) => {
                return (
                  <Step key={index} id={`step${index}`}>
                    <CustomStep
                      key={index}
                      data={stepdata}
                    />
                  </Step>
                )
              })}
            </Steps>
          </Wizard>
        )}
      />

`

If I try to render a single component like in the examples it works perfectly.

Is it a problem looping through steps? Or is React Albus not too happy with a single component being rendered multiple times with different data?

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