Hengameh / react-random-user-app

React Random User App

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React Random User App

Generete random users - written in React

Axios: Promise based HTTP client to fetch data from randomuser.me api

No React Hooks feature used in this project.

Desktop Medium Desktop Small

Demo: https://hengameh.github.io/react-random-user-app/

This project was bootstrapped with Create React App.

Overview

Here is my responsive React Random User app which easily created with no build configuration (Creating an App)

Application Requirements:

  • Use https://randomuser.me/api/?results=25 to request for an array of users
  • When the application loads, the list of users should be fetched without any user input
  • Each list item must display at least: User first and last names, profile image, city, state and email, if available
  • Display a male icon for male users, and a female icon for female users
  • Only For Users with “US” nationality, display a small American flag for that user
  • Each user list item must have a button, labeled as “Delete”. Clicking on this button should remove the user from the list (until the next browser refresh)

Note: Like always make sure to break down this project into steps rather than trying to do everything at once. Enjoy!

Photo by Augustine Wong on Unsplash

Licensed under the MIT License


How to run this project locally

In the project directory, you can run:

npm install

Install the dependencies in the local node_modules folder.

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

About

React Random User App

License:MIT License


Languages

Language:JavaScript 51.3%Language:CSS 39.7%Language:HTML 8.9%