const refs = {
localVideoRef: useRef(null),
socketRef: useRef(null),
pcRef: useRef(null),
remoteVideoRef: useRef(null),
};
const Socket = forwardRef((props, ref) => {
const { localVideoRef, socketRef, pcRef, remoteVideoRef } = ref;
...
};