Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardReactrender bailout Object.isSingle-choice MCQ

A component returns a fresh object literal from useMemo with an empty dependency array, and you pass it to a React.memo child. Why does this NOT cause the child to re-render on every parent render?

const cfg = useMemo(() => ({ a: 1 }), []); return <Child cfg={cfg} />;