arrow_backBACK TO DRILLS
Black BeltuserefPREMIUM
Destructuring ref as a Prop in React 19
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?