Ajouter un nouvel élément UseState Array
setMyArray(oldArray => [...oldArray, newElement]);
Inexpensive Impala
setMyArray(oldArray => [...oldArray, newElement]);