515 B
515 B
Frontend Architecture
Goals
The frontend should be:
- Maintainable.
- Consistent.
- Easy to extend.
Structure
Organise by feature.
Example:
features/
jobs/
career/
cv-builder/
settings/
auth/
Components
Prefer:
Reusable components.
Small focused components.
Pages
Pages should:
- Compose components.
- Handle routing.
- Manage page-level state.
State
Avoid unnecessary global state.
Use:
- Local state.
- Feature state.
- Server state.
Where appropriate.