As the question above says, how can I empty an array? I tried using useState setting the array like this setArray([]) but this actually doesn\'t no
useState
setArray([])