passed socket object into react and into lobby to send join events on click