The component must pass the ref to a DOM node or useImperativeHandle. Otherwise the parent will not receive the intended target.