react-albus icon indicating copy to clipboard operation
react-albus copied to clipboard

how to set wizard step

Open jessemlay opened this issue 5 years ago • 1 comments

I cannot for the life of me understand how I need to reset the wizard when my modal closes.

Is there a way I can call the set method from a functional component ?

This doesn't work. function reset() { <WithWizard render={({ set, step }) => { console.log(step); set('chart selection'); }} />; }

jessemlay avatar Aug 25 '21 04:08 jessemlay

figured it out: render={({ next, previous, push }) => (

jessemlay avatar Aug 25 '21 06:08 jessemlay