React as a System
Many developers view React as:
Component → Component → Component
Architects view React differently:
Copilot must understand this hierarchy.
Without hierarchy:
<p>Hello</p>
appears everywhere.
With hierarchy:
<Paragraph text="Hello" />
becomes reusable.
This creates consistency and maintainability.
Mini Exercise
Take a React feature from your own project and map it as a system rather than a screen.
Example
For a booking feature, you might identify:
- domain model
- state module
- API service
- reusable UI components
- page composition