“Why is calling a Hook like useContext() inside an event handler invalid?”
Because Hooks can only run while React is rendering a component or custom Hook
Because event handlers are asynchronous by default
Because Hooks cannot access browser events
Because React.memo blocks Hooks inside callbacks