how to add multiple array in useState reactJs code example Example: React Hooks append state setTheArray(currentArray => [...currentArray, newElement])