Explore Library
Quiz

When React.memo Fails to Prevent Renders

Understanding why a React.memo-wrapped component still re-renders despite unchanged-looking props.

A component `<Child style={{ margin: 0 }} onClick={() => save()} />` is wrapped in `React.memo`, yet it re-renders every time its parent renders. Nothing about the visible data changed. What is the most accurate explanation?