@_georgemoller — custom hooks for event listener reuse
⚛️ React TIp: reuse logic by using custom hooks to attach event listeners
Smart, because the alternative — scattering addEventListener / removeEventListener pairs across components — is how you end up with memory leaks and impossible-to-trace bugs. Encapsulating that setup and teardown in a useEventListener hook keeps the cleanup guaranteed and makes the intent obvious at the call site.
