arrow_backBACK TO DRILLS
Black BeltusereflockPREMIUM

React 19 ref-as-prop Replaces forwardRef for Many Cases

A team upgrades a shared component library from React 18 to React 19.

REACT_MODULE // 0x42
function TextInput({ label, ref }) {
return (
<label>
{label}
<input ref={ref} />
</label>
);
}

Under React 19, what is true about this component that would not have worked correctly under React 18?

lock

This Drill is Locked

This is a premium drill. Continue on to the next free drill in the sequence.

CONTINUE DRILLarrow_forward
BugDojo
BlogFAQ

© 2026. Carved in code.