I am trying to use React-VR with Socket.io. I am crashing when I try to import socket.io-client(v2.0.4). I have to browse through examples without coming up with a solution.
Asked
Active
Viewed 58 times
0
-
1Can you please put the actual code in the question, instead of images of the code? In order to diagnose this, we would need to retype the code in our own IDE. – Jake Feb 27 '18 at 17:15
1 Answers
0
Putting your socket.io calls in componentDidMount as opposed to the constructor would be the correct way of doing this I beleive.

Anthony Cregan
- 960
- 11
- 25