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’, () => { […]