load data
This commit is contained in:
		
							parent
							
								
									3e1e4cfd9e
								
							
						
					
					
						commit
						a2879a9309
					
				@ -38,7 +38,7 @@ function App() {
 | 
			
		||||
    //setAnimal(current => [...current, ...arr]);
 | 
			
		||||
    //emptyZoo = false;
 | 
			
		||||
    //setAnimal(["Lev", "Lachtan", "Varan", "Slon"]);
 | 
			
		||||
    if (newAnimal != "") {
 | 
			
		||||
    if (newAnimal !== "") {
 | 
			
		||||
      setAnimal([...animal, newAnimal]);
 | 
			
		||||
      console.log("pridal jsi " + newAnimal);
 | 
			
		||||
      setNewAnimal("");
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user