React state being set back to initial [] when socket.on() is triggered inside useEffect()

后端 未结 0 1520
轮回少年
轮回少年 2021-02-03 14:20

I am a noob with React functional components and this is my first try with socket-io.

I have a functional component which is an inbox that renders up to ten "alert&q

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