
What I learned from building a chat project with sockets.io and React
A few days ago I’ve built a React application with socket.io. It’s a chat app. *Sidenote: The repo and youtube video will be at the down of the article. Now, when you’ll see it you may ask a few questions like, “why didn’t use any DB or firebase?” or something. Well, is simple I had 3 main reasons: My experience let me to that, is not like I couldn’t implement firebase or MongoDB (because I love mongo) or any DB I wanted a minimal app, and if someone finds my code usefully it can take it and implement which DB wants or any backend architecture It was a Lil bit simple to do it with DB and a little bit overkill at the same time to use that Anyway, getting back on rails. In the progress, I was developing features like emojis, showing when another user is typing, set usernames and so on, I noticed that on a lot of messages my app starts to be kinda slow and do some lag spikes. Of course, as every React Developer does, I start to throw memoization. I used callbacks that didn’t help a lot be
Continue reading on Dev.to React
Opens in a new tab



