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

A component is wrapped in React.memo and receives only `children` as a prop, where the parent passes JSX children inline. Does React.memo prevent it from re-rendering when the parent re-renders?

const Card = React.memo(function Card({ children }) { return <div className="card">{children}</div>; }); // parent: <Card>{<Inner />}</Card>