Tambahkan Elemen Baru Usestate Array
setMyArray(oldArray => [...oldArray, newElement]);
Inexpensive Impala
setMyArray(oldArray => [...oldArray, newElement]);