DEV Community


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

chrisheld927 profile image
Chris Held Author

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.

hirusi profile image
Ru Singh

Oh that makes perfect sense!