I\'m forwarding a ref to Child component as per the react docs: https://reactjs.org/docs/forwarding-refs.html.
const WrappedComponent = React.forwardRef((prop