Skip to content

A React application that fetches user information from the JSONPlaceholder API and provides features such as searching users by name, viewing past search history, and sorting users by name. The application uses Material-UI icons for an enhanced user interface.

Notifications You must be signed in to change notification settings

Rajkumar-Khatua/User-Info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

User Info App

A simple React application that retrieves user information from an external API, allows searching users by name, viewing past search history, and sorting users by name.

Features

  • User List: Display a list of users retrieved from the JSONPlaceholder API.
  • Search by Name: Search users by their name and view the search results.
  • Search History: View and clear past search terms.
  • Sort by Name: Toggle sorting users by name.

Getting Started

Prerequisites

  • Node.js installed on your machine.
  • Package Manager (npm or yarn).

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/user-info-app.git
    
  2. Install dependencies:

    npm install
  3. Start the development server:

     npm start
  4. Open http://localhost:3000 to view it in the browser.

Live Demo

User Info App

Usage

Search by Name

  1. Enter a name in the search bar or click the search button.
  2. View the search results.
  3. Click the listed user to view their details.

Search History

  1. Click the search history button to view past search terms.
  2. Click the clear button to clear the search history.
  3. Click the listed search term to search for it.

Sort by Name

  1. Click the sort button to toggle sorting users by name.
  2. Click the sort button again to toggle sorting users by name in reverse order.
  3. Click the sort button again to toggle sorting users by name.

Technologies Used

Acknowledgements

Tanks for reading

Contact me:

LinkedIn E-mail

About

A React application that fetches user information from the JSONPlaceholder API and provides features such as searching users by name, viewing past search history, and sorting users by name. The application uses Material-UI icons for an enhanced user interface.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published