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.
Hi, the current setup gives an error pointing to this bug https://github.com/facebook/react/issues/18178#issuecomment-595846312 describe as "Cannot update a component from inside the function body of a different component." Will be nice to have a workaround