Component-first prompting structures frontend work by mapping a dashboard’s component hierarchy and data flow before implementing individual components, starting with leaf nodes. section 9.6.1
Dashboard build sequence
Prompt: “Before building the dashboard, show me the component hierarchy and data flow diagram. Then implement each component starting from leaf nodes.” Use the resulting plan to guide incremental implementation and review. section 9.6.1
<requirements>...</requirements> <implementation>...</implementation> <tests>...</tests>
Organize the workflow into requirements, implementation, and tests so each component can be specified, built, and checked separately. section 9.6.1
