HOCs should use React.forwardRef to forward the ref prop to the wrapped component. Since ref is not a standard prop (it's handled specially by React), it won't be automatically passed through by an HOC. React.forwardRef provides a way to explicitly forward refs to the inner component.