How to use connect and disconnect socket in React 18 useEffect? #4657
-
Hello, I use Redux to make the connect and disconnect:
I updated this to the following:
I rathere feel that this is not the best solution though. How would I be able to use Socket IO with the new React 18 useEffect? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi! Please check this guide: https://socket.io/how-to/use-with-react |
Beta Was this translation helpful? Give feedback.
Hi! Please check this guide: https://socket.io/how-to/use-with-react