Skip to content

Commit

Permalink
feat: jsDoc으로 설명 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
kimeodml committed Jun 12, 2024
1 parent e60d0e2 commit 8e77f85
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/utils/hooks/useFunnel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ export interface FunnelProps {
children: ReactElement<StepProps>[];
}

/**
* 단계별 입력 폼을 진행할 시 사용 권장
* @param { string } defaultStep 시작할 초기 단계
* @returns { Funnel, Step, setStep, currentStep } 단계별 입력 폼을 관리하는데 사용하는 유틸리티
*/
export const useFunnel = (defaultStep: string) => {
const [step, setStep] = useState(defaultStep);

Expand Down

0 comments on commit 8e77f85

Please sign in to comment.