add new entry in to a already exisity hook array in react code example Example: React Hooks append state setTheArray(currentArray => [...currentArray, newElement])