A VS Code extension that removes/unwraps React memoization hooks (useCallback and useMemo) from your code. Perfect for when you're debugging performance issues or simplifying code during refactoring.
- Instant unwrapping of useCallbackanduseMemohooks
- Smart handling of different function formats (arrow functions, named functions, expressions)
- Keyboard shortcut for quick access (Ctrl+Shift+U/Cmd+Shift+U)
- Single-line detection: Just place cursor on single-line hooks
- Multi-line support: Select the entire hook code to unwrap
- Windows/Linux: Ctrl+Shift+U
- Mac: Cmd+Shift+U
- Open Command Palette (Ctrl+Shift+P/Cmd+Shift+P)
- Type "Unwrap useCallback/useMemo"
- Press Enter
Contributions are welcome! Feel free to submit issues and pull requests on GitHub.