0

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.

Brandon Minnick
  • 13,342
  • 15
  • 65
  • 123
Larry
  • 1
  • 1
    Can 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 Answers1

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