Mongo socket react