Command Palette
Search for a command to run
Command Palette
Search for a command to run

use-event-listener

✓ Relevant

useEventListener: attach auto-disposed event listeners to elements via function-based target, with automatic cleanup on component destroy or element change