Accessing Child Element States and functions using forwardRef , useImperativeHandle and the useRef hook