Course lesson

Support MetaMask Connections to a React dApp

We need a way for our user’s MetaMask wallets to connect to our dApp. We can accomplish this with the ethereum object that MetaMask injects into the browser’s window.

Duration
3 min
Access
Included
Transcript
Retained from source evidence

We need a way for our user’s MetaMask wallets to connect to our dApp. We can accomplish this with the ethereum object that MetaMask injects into the browser’s window.

When the user connects we’ll save their wallet address as state using the useState hook.