Tag: forwardref
React 18: Strange behavior when using useRef with forwardRef to manipulate parent component's state