docs: consolidate repository guides and preserve audit history
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
# 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.
|
||||
Reference in New Issue
Block a user