resetState() {
    this.visualizer.stopSharing();
    this.setState({
      filesQueued: 0,
      percentage: null,
      files: this.state.files.map(file => {
        file.sent = true;
        return file;
      }),
      isSelectorEnabled: this.state.peers.length - 1 > 0,
    });

    // Remove the file from the input
    this.fileInput.current.value = '';
  }
DOM is reset to prepare for the next file transfer