Migrate incrementally — không rewrite all-at-once; ưu tiên chuyển đổi khi touch existing code.
- Không rewrite toàn bộ cùng lúc
- Bắt đầu từ components mới (100% hooks)
- Khi sửa bug/thêm feature → convert class → function
- Extract logic thành custom hooks (reuse)
- Class + hooks chung sống tốt, không cần migrate hết
- Ưu tiên convert: HOCs → custom hooks, lifecycle → useEffect
- Do not rewrite everything at once.
- Write all new components with hooks (100%).
- When fixing a bug or adding a feature → convert that class to a function component.
- Extract logic into custom hooks for reuse.
- Class and function components coexist fine — no need to migrate everything.
- Prioritize converting: HOCs → custom hooks, lifecycle methods → useEffect