React state updating multiple times on single setState call

后端 未结 0 926
离开以前
离开以前 2021-01-17 09:56

I have a component that updates the state when a socket message is received. It looks like this:

SocketComponent.js



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