This template helps you refactor code to improve maintainability, readability, performance, and testability while preserving existing functionality. It provides structured guidance for code improvements and migration strategies.
Refactor this React component to improve:
- Maintainability: Extract custom hooks and separate concerns
- Readability: Better naming and documentation
- Performance: Optimize re-renders and memory usage
- Testability: Make components easier to unit test
[PASTE YOUR CODE HERE]
Preserve existing functionality and provide migration notes.
peep refactoring