How to hold the socket instance on page refresh?

后端 未结 0 1529
广开言路
广开言路 2020-11-28 13:10

on my root component I am setting up the the socket like this,

const [socket, setSocket] = useState(null);
const setupSocket = () => {
    const token = lo         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题