socket.io with reactjs functional component code example Example: socket io react js npm install socket.io