load data

This commit is contained in:
njord 2023-05-29 21:10:17 +02:00
parent 3e1e4cfd9e
commit a2879a9309

View File

@ -38,7 +38,7 @@ function App() {
//setAnimal(current => [...current, ...arr]); //setAnimal(current => [...current, ...arr]);
//emptyZoo = false; //emptyZoo = false;
//setAnimal(["Lev", "Lachtan", "Varan", "Slon"]); //setAnimal(["Lev", "Lachtan", "Varan", "Slon"]);
if (newAnimal != "") { if (newAnimal !== "") {
setAnimal([...animal, newAnimal]); setAnimal([...animal, newAnimal]);
console.log("pridal jsi " + newAnimal); console.log("pridal jsi " + newAnimal);
setNewAnimal(""); setNewAnimal("");