DEV Community

Discussion on: Using WebSockets with React

Collapse
 
mattcale profile image
Matthew Cale

Clear, concise and useful! Thanks for sharing. As others have mentioned using the useEffect hook is likely the best spot for initializing WS, but it adds additional code so 🤷‍♀️. In any case really great work