react/skip-logic

Branching for multi-step forms, surveys and quizzes. Describe the flow as JSON, render it with your own components.

npm install react-skip-logic

Where you'd use it

Product onboarding

Ask different questions by role or company size, and send big accounts to sales.

Surveys and feedback

Skip questions that don't apply. Ask “what went wrong?” only after a low NPS score.

Quizzes and recommenders

Score answers and branch on the total to pick a plan, product or course level.

Support and triage

Route tickets, self-serve simple refunds and escalate urgent cases before anyone types a message.

Quote and application forms

Insurance, loans, visas and job applications where later questions depend on earlier ones.

No-code form builders

Flows are plain JSON, so you can store them in a database, edit them in an admin panel and check them with validateFlow().