Not able to access react state from socket event handler function

前端 未结 0 1544
感情败类
感情败类 2021-01-22 01:18

I have a react app where I am using socket.io for realtime messaging. I am trying to use common socket object across all react functional components, but in event handler functi

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