How to add “connect button” to React Dapp?

By November 8, 2020DApps

On my UI i have a button tag

<button className=”enableEthereumButton”>Enable Ethereum</button> And for my javascript im using the metamask code example

const ethereumButton = document.querySelector(‘.enableEthereumButton’); ethereumButton.addEventListener(‘click’, () => { […]

Leave a Reply

All Today's Crypto News In One Place