Why socket.io recommends not to listen to events inside Child components?
I have a React app with many pages. Inside one of the pages, I need real-time communication with the server. So, we started using socket.io. But, the doc said as follow
Socket.io only emits to rooms after recompile of react client code
`I am trying to implement socket.io messaging into my react application, and I’m stuck on getting the sockets to work consistently. The socket only works after recompiling the react app, as in, when I first start up the app and api server, the socket connects but messaging doesn’t work, but after a recompile it works fully as intended. I’m relatively new to react and sockets, so I’m not entirely sure where to look.