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

A consumer component reads context via useContext, and you also wrap that consumer in React.memo. The Provider's value object changes. What happens to the consumer?

const Ctx = createContext(null); const Reader = React.memo(function Reader() { const v = useContext(Ctx); return <span>{v.count}</span>; });