react-wizard-flow
npm install react-wizard-flow



``typescript
import { createWizardFlow, useWizardFlow } from 'react-wizard-flow';
enum TestSteps {
step1,
step2,
}
const WizardFlow = createWizardFlow(TestSteps);
function Step1() {
const { transition, close } = useWizardFlow(WizardFlow);
return (
function Step2() {
const { transition, close } = useWizardFlow(WizardFlow);
return (
const STEPS = {
[TestSteps.step1]:
[TestSteps.step2]:
};
export default function() {
const onClose = () => { console.log('Flow closed'); }
return
}
``
This README was generated by anansi.