Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mingyeongho/funnel
스터디 - 퍼널
https://github.com/mingyeongho/funnel
Last synced: 4 days ago
JSON representation
스터디 - 퍼널
- Host: GitHub
- URL: https://github.com/mingyeongho/funnel
- Owner: mingyeongho
- Created: 2023-08-31T17:32:52.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-31T17:36:33.000Z (over 1 year ago)
- Last Synced: 2024-11-30T00:11:08.466Z (2 months ago)
- Language: TypeScript
- Size: 47.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Funnel
Funnel 기능을 사용할 곳에 useFunnel을 가져온 후
```
const { Funnel, setStep } = useFunnel({ qs: funnelTitle });
<병원선택 onNext={() => setStep({ step: "일정선택" })} />
<일정선택 onNext={() => setStep({ step: "정보확인" })} />
<정보확인 onNext={() => setStep({ step: "예약성공" })} />
<예약성공 />
```
위 처럼 사용
(useFunnel은 Funnel 컴포넌트와 step 이동 함수인 setStep을 리턴으로 한다.)