Javascript – Rendering Twice
I tried to build a video chat application using React and peerjs. and below is pieces of code that handles it. const randomPeerId = uuidv4(); const peer = new Peer(randomPeerId); export function VideoCall() { const [peerId, setPeerId] = useState(""); useEffect(()=>{…