Skip to content

Instantly share code, notes, and snippets.

@estrattonbailey
Created August 31, 2017 16:22
Show Gist options
  • Save estrattonbailey/9a97550d1b92bdc54a0aaeaa7d368ad8 to your computer and use it in GitHub Desktop.
Save estrattonbailey/9a97550d1b92bdc54a0aaeaa7d368ad8 to your computer and use it in GitHub Desktop.
import { Stepper, Step } from 'react-stepper' // need a new name, this is taken
render(
<div>
<Stepper active={0}>
<Step>
{({ next, prev, clear }) => (...component1...)}
</Step>
<Step>
{({ next, prev, clear }) => (...component2...)}
</Step>
<Step>
{({ next, prev, clear }) => (...component3...)}
</Step>
</Stepper>
</div>
, root)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment