Refactoring Guidelines
Refactor in tiny steps: extract components/hooks, slim props, remove dead code, and keep tests green at each checkpoint.
What refactoring means
Goal: Change structure, not behavior.
- Work in small steps
- Extract components/hooks
- Slim noisy props
- Remove dead code
Safe habits
- Keep output identical after each step
- Prefer extraction over big rewrites
- Rename/move with IDE help
- Run tests (or manual checks) often
All lessons in this course
- Feature Folders & UI vs Composite Components
- Hooks Folder Conventions & Test Co-location
- Refactoring Guidelines