DEV Community

loading...

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

Collapse
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.

Collapse
hirusi profile image
Ru Singh

Oh that makes perfect sense!