Push-Methoden-in-React-Hooks-Nutzungsdaten

const [theArray, setTheArray] = useState(initialArray);

setTheArray(theArray => [...theArray, newElement]);
Lovely Locust