This component lets you add fruit items to a list. But when you click "Add Item", nothing happens on screen. The list stays frozen, even though the code looks like it's adding items.
Symptoms
- Clicking "Add Item" has no visible effect
- The list stays at its initial state
- No console errors
Your Task
Fix the addItem function so that new items actually appear in the list.
Think about it: Does React detect the change if you mutate the existing array?