` component's state.
+
+```javascript
+state = {
+ contacts: [],
+ filter: ''
+}
+```
+
+It is enough to highlight four components: the form for adding new contacts, the contact list, the contact list item, and the search filter.
+
+After refactoring, the root component of the application will look like this:
+
+```html
+
+
Phonebook
+
+
+ Contacts
+
+
+
+```
+
+### Step 5
+Prevent the user from adding contacts whose names are already present in the phonebook. In case of an attempt to do so, display an alert with a warning.
+
+### Step 6
+Extend the application's functionality by allowing the user to delete previously saved contacts.