This is a code repository for the corresponding YouTube video. In this tutorial we are going to build and deploy a real time chat application. Covered topics: React.js, Node.js, Express.js, and Socket.io.
Hi, I've made some changes to your code. Do you mind checking it?
1-I've removed the Endpoint dependency inside the UseEffect in Chat file and added a "messages" dependency to the second UseEffect so it could rerenreder every time you have a new message.
2- I've removed the onKeyPress keyword because deprecated.
Hi, I've made some changes to your code. Do you mind checking it?
1-I've removed the Endpoint dependency inside the UseEffect in Chat file and added a "messages" dependency to the second UseEffect so it could rerenreder every time you have a new message. 2- I've removed the onKeyPress keyword because deprecated.