Creating a device testing tool with MQTT connection in React JS