Using react for chat app