Numpy Create An Empty Array In Useeffect