Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumReactforwardRefSingle-choice MCQ

A library wraps a component in BOTH `React.memo` and `forwardRef`. To make `memo` actually skip re-renders while the parent can still attach a ref, which composition is correct?

// Goal: ref-forwardable AND prop-memoized const Inner = (props, ref) => <input ref={ref} {...props} />;