To add MEWconnect Protocol to Web3-React using the mewconnect-connector for MEWconnect Protocol

You can also see pull request #93 in the web3-react repository as a guide.

Install:

yarn add @myetherwallet/mewconnect-connector

Arguments

    url: string; //(optional if infuraId is provided)
    infuraId?: string; //(optional if url is provided)
    windowClosedError?: boolean; //(optional)
    subscriptionNotFoundNoThrow?: boolean; //(optional)

Example

import { MewConnectConnector } from '@myetherwallet/mewconnect-connector'

const mewconnect = new MewConnectConnector({
  url: 'some rpc url'
})