Pass the ref object to the element's ref attribute. React will set inputRef.current to the input DOM node after the element is committed.