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.
-
Add Contacts: Use the provided form to easily add new contacts, including names and phone numbers.
-
Search Functionality: Effortlessly search through your contact list by entering names in the search field.
-
Contact Deletion: Conveniently delete contacts that are no longer needed, enhancing the user's control over their contact list.
-
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.
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.