DEV Community

Discussion on: React: Optimize Components with React.memo, useMemo, and useCallback

Collapse
 
chrisheld927 profile image
Chris Held

Good question! It's because the function that gets passed into React.memo is anonymous, so dev tools doesn't know what to call it even though the component itself is called Header.