Python Creating An Empty Array In Useeffect