if you use this call back only on a plain html tag i think it should be fine.
but problem is where you pass this type of callbacks as a prop to a child component.
if your top level component happen to rerender and you don't want to child component rerender, if use memo on child component, it rerender anyway because when top level component rerender that callback recreated and each time you check for prev and next prop of child component it is new every time.
================== TopComponent (props) ============
+------- Child Component - (onClick={()=> console.log('rerendered every time')}) --+
| memo check funciton ===>(prev,next) => prev===next |
+----------------------------------------------------------------------------------+
===============================