Answer the question
In order to leave comments, you need to log in
Do I need to move the logic related to communication with the back to a separate file?
Hello. Learning to work with React. I decided to write a small sports application for myself. To communicate with the backend, I use the socket.io library. The question is where exactly you need to connect this library. In each component where is it required? Or include in app.js and then pass through props. Or is it better to take everything out as a separate file, and then connect it where it is needed?
I need advice from experienced programmers
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question