React Fundamentals

0% completed

Previous
Next
Code Challenge

Challenge: Fetch and Display Random Users from an API

Follow these instructions to complete your challenge:

  1. Create a functional component called RandomUser in the App.jsx file.
  2. Use the useEffect hook to fetch a random user from the Random User API (https://randomuser.me/api/) when the component mounts.
  3. Display the user’s name, email, and profile picture.
  4. Add a "Fetch New User" button to fetch a new random user when clicked.

Expected Output

Image

.....

.....

.....

Like the course? Get enrolled and start learning!
Previous
Next