how to use useState as an array and push into it code example Example: usestate array push setTheArray([...theArray, newElement]);