APPENDIX D
Flow Chart
Drives the Screens Walkthrough below it.
- HANDLE
- flow-chart
- LIVES IN
- src/components/FlowChart.jsx
- USED ON
- Chapters that declare a flow
- PROPS
- steps · activeStep · onStepSelect
EXAMPLE
LIVEAs it renders.
¶ FLOWCLICK A STEP TO WALK THROUGH
6 surfaces, one pathCODE
COPY AND PASTEHow it is called.
JSX
import FlowChart from '../components/FlowChart.jsx'
const [activeStep, setActiveStep] = useState(0)
<FlowChart steps={cs.flow} activeStep={activeStep} onStepSelect={setActiveStep} />RULES
What must stay true.
Drives the Screens Walkthrough below it.