Exercise Solution

Our objective was to delete a contact. Let's see how we can delete a contact.

If you figured it out on your own, you should be impressed with your grasp on Redux.

Nevertheless, it’s good to look at different ways to approach the problem. This is how I did it.

The first step in doing something new is always creating a new action. In the constants/action-types.js, we’ll add our “DELETE_CONTACT” string. Again, this optional, but a safe practice:

Get hands-on with 1200+ tech skills courses.