Challenge: Connecting to a Wallet

Test yourself by creating a wallet and checking its connectivity.

Problem statement

In this challenge, complete the following tasks:

  • Write a React component called Title that displays Hello {name} on the screen using an h1 tag, where {name} is a prop passed into this component.
  • Write a function called checkIfWalletIsConnected that checks if there is an ethereum property on the window 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 1200+ tech skills courses.