Food

Each food item created with v-for is now identified uniquely with the key attribute, and the problem is fixed. The favorite image now stays with the 'Fish' element, and is not transferred to 'Cake'.

Apples

Apples are a type of fruit that grow on trees.

Pizza

Pizza has a bread base with tomato sauce, cheese, and toppings on top.

Rice

Rice is a type of grain that people like to eat.

Fish

Fish is an animal that lives in water.

Cake

Cake is something sweet that tastes good.