Skip to content

uzeWizardStep causes steps to not render #49

Description

@sikula

This does not render the steps

const FirstStep = () => {
  const { isActive } = useWizardStep()
  return isActive && <div>First Step</div>
}

const SecondStep = () => {
  const { isActive } = useWizardStep()
  return isActive && <div>Second Step</div>
}

const App = () => {
  return (
    <Wizard>
      <FirstStep />
      <SecondStep />
    </Wizard>
  )
}

This does work

const FirstStep = () => {
  return (
    <WizadStep>
        {({ isActive }) => isActive && <div>First Step</div>
    </WizardStep>
  )
}

const SecondStep = () => {
  return (
    <WizardStep>
      {({ isActive }) => isActive && <div>Second Step</div>
    </WizardStep>
  )
}

const App = () => {
  return (
    <Wizard>
        <FirstStep />
        <SecondStep />
    </Wizard>
  )
}

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions