Skip to content

A simple React application for contact management, offering essential features like adding, searching, and deleting contacts. Now includes persistent storage of the contact list in the browser's localStorage, using React lifecycle methods.

Valik3201/goit-react-hw-03-phonebook

Repository files navigation

Contact Management App

This React application serves as a straightforward contact management system, offering essential features for adding, searching, and deleting contacts.

Note

Contacts are now stored persistently using the browser's localStorage, ensuring that the contact list remains accessible even after refreshing or closing the application. The integration of React lifecycle methods ensures a smooth and seamless experience for managing and retaining contact data.

Features

  1. Add Contacts: Use the provided form to easily add new contacts, including names and phone numbers.

  2. Search Functionality: Effortlessly search through your contact list by entering names in the search field.

  3. Contact Deletion: Conveniently delete contacts that are no longer needed, enhancing the user's control over their contact list.

Usage

  • Adding New Contacts:

    • Look for the "Add Contact" section or a similar button.
    • Fill in the required information, including the contact's name and phone number, in the provided form.
    • Submit the form to add the new contact to your list.
  • Searching for Contacts:

    • Locate the search bar or input field on the page.
    • Enter the name of the contact you are looking for.
    • The application will dynamically filter and display matching contacts as you type.
  • Deleting Contacts:

    • Find the list of contacts displayed on the page.
    • Look for a delete or remove option associated with each contact.
    • Click on the delete option to remove unwanted contacts from your list.

Project Structure

The project structure follows a modular approach with the following components:

  • ContactForm Component:

    • Manages the form for adding new contacts.
  • ContactList Component:

    • Displays the list of contacts.
  • ContactItem Component:

    • Represents an individual contact in the list.
  • Filter Component:

    • Implements the search functionality.
  • App Component:

    • Root component managing the state for contacts and filter.

About

A simple React application for contact management, offering essential features like adding, searching, and deleting contacts. Now includes persistent storage of the contact list in the browser's localStorage, using React lifecycle methods.

Topics

Resources

Stars

Watchers

Forks