First of all thank you very much this is a comprehensive example that illustrates how to use the ble library very well!
This is more like of a question rather than a comment but this example is not using react hooks? am I correct? Otherwise we would be able to rewritesome of the logic around this.state = {showModal:,....} etc in a more compact way?