Add a pet
Your task In addPet, add setPets([...pets, { id: String(Date.now()), name: name }]);. Then add a pet in the phone.
Getting the editor ready
Your task In addPet, add setPets([...pets, { id: String(Date.now()), name: name }]);. Then add a pet in the phone.
Getting the editor ready