import { useStep } from "https://deno.land/x/netzo@0.5.107/deps/usehooks-ts.ts";
Custom hook for managing and navigating between steps in a multi-step process.
Examples
const [currentStep, { goToNextStep, goToPrevStep, reset, canGoToNextStep, canGoToPrevStep, setStep }] = useStep(3);
// Access and use the current step and provided helper functions.
const [currentStep, { goToNextStep, goToPrevStep, reset, canGoToNextStep, canGoToPrevStep, setStep }] = useStep(3); // Access and use the current step and provided helper functions.