Skip to content

jxzhou131/react-user-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React User Search Application

This React application provides an autocomplete search feature using Material-UI's Autocomplete component to search and display user details fetched from the JSON Placeholder API. Users can search by name, and the application displays their formatted name and address.

Features

  • Autocomplete Search: Users can type into the search input and see suggestions that match their input, formatted as {Last Name} {Suffix}, {First Name} (Title).
  • User Details Display: Upon selecting a user, their name and address details (street, suite, and zipcode) are displayed below the search bar.

Technologies Used

  • React: A JavaScript library for building user interfaces.
  • Material-UI: A popular React UI framework that provides styled components and icons.
  • TypeScript: A superset of JavaScript that adds static types.

Setup and Installation

To get this project up and running on your local machine, follow these steps:

Prerequisites

  • Node.js (v14 or later recommended)
  • npm (usually comes with Node.js)

Installation

  1. Clone the repository:
  2. Install NPM packages:
npm install
  1. Start the development server:
npm start

Usage

Begin typing a name in the search bar to see live autocomplete suggestions. Click on a user name to view their detailed information displayed dynamically below the search bar.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors