Skip to main content

React Examples

All React examples live under:

  • packages/react/examples

Minimal

ExamplePurpose
simple-flow.tsxMinimal provider + renderer flow
simple-back.flow.tsxBasic HISTORY_TARGET usage
go-to-jump.flow.tsxProgrammatic step jumps

Feature-Focused

ExamplePurpose
conditional-skip.flow.tsxOptional step routing
first-match-wins.flow.tsxTransition precedence
custom-event.flow.tsxCustom event dispatch
async-guard.flow.tsxAsync when with UI
async-effect.flow.tsxAsync context updates
dynamic-steps.flow.tsxRuntime graph updates
reset-on-journey-change.flow.tsxIntentional provider reset
confirm-close.flow.tsxDirty-close confirmation
history-back.flow.tsxBranch-aware back UX

Real Journey Scenarios

ExampleDomain
group-trip.flow.tsxGroup travel planning
itinerary-builder.flow.tsxItinerary building
onboarding.flow.tsxBranching onboarding
checkout.flow.tsxCheckout flow
support-ticket.flow.tsxSupport intake

Suggested Adoption Path

  1. Start from simple-flow.tsx.
  2. Add guards/effects from feature examples.
  3. Validate behavior with one real-domain example close to your product workflow.