Array in useState returns undefined - Kevin Powell - Community