Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumReactReact.memo bailoutSingle-choice MCQ

Given a `React.memo` child that renders a `children` prop, why does this parent cause the memoized child to re-render on every parent render?

const Memoized = React.memo(function Child({ children }) { return <div>{children}</div>; }); function Parent() { const [n, setN] = useState(0); return ( <Memoized> <span>hi</span> </Memoized> ); }