Challenge: Connecting to a Wallet
Test yourself by creating a wallet and checking its connectivity.
We'll cover the following
Problem statement
In this challenge, complete the following tasks:
- Write a React component called
Title
that displaysHello {name}
on the screen using anh1
tag, where{name}
is a prop passed into this component. - Write a function called
checkIfWalletIsConnected
that checks if there is anethereum
property on thewindow
object.
Input
This challenge doesn’t need any input.
Output
This challenge will print the Hello {name}
depending on what {name}
has been passed. It will also output the wallet’s connectivity as a boolean.
Get hands-on with 1400+ tech skills courses.