3.1 Favorites

In an earlier tutorial, we have already added a feature to add dishes as favorites. In this tutorial, we will add a new component that will display a list of favorites. At the end of this exercise you will be able to:

  • Show the list of favorites for the user
  • Navigate to the details of the dish when the users taps a favorite


3.1.1 Dataflow


3.1.2 How to

1. Create 'components/FavoriteComponent.js' file.

2. Update 'components/MainComponent.js' file.


3.1.3 Screenshots