Steps to populate dynamic Dropdown using arrays in REACTJS using react hooks
问题 Excuse my lack of knowledge as i am fairly new to ReactJS. I'm trying to create a dynamic Dropdown system where i have The Country DropDown and the cities DropDown, and i want to fetch my data from a const that has multiple arrays in it, here's an example of the const i have: const countries = {"France":["Paris","Marseille","Lille","Lyon"], "Usa":["New York","San Francisco","Austin","Dallas"] }; I know that i need to use the useState and the useEffect hooks and a function to handle the event