useStep
Manage wizard/multi-step flows easily.
Live Demo Placeholder
Interactive demo coming soon.
Usage Example
1import { useStep } from '@danixsoft/hooks';
2
3function Example() {
4 const [currentStep, { goToNextStep }] = useStep(5);
5
6 return (
7 <div>
8 <p>Step: {currentStep}</p>
9 <button onClick={goToNextStep}>Next</button>
10 </div>
11 );
12}