setTreasure(newValue): This part changes the item inside the treasure chest whenever you want. Here, the component has a treasure chest holding magic scrolls initially. When you click the button, it casts the useState spell, changing the treasure to enchanted potions.