react native hooks how to refresh an array from returned data code example Example: usestate array push setTheArray([...theArray, newElement]);