Skip to content

Conversation

@Sukikiroi
Copy link

Example of use:
get evry communes of given wilaya as Array to use it in Select Comonent
export const getCommunes=(wilaya)=> {
const communes = wilayaCommunes.find((w) => w[wilaya]);
return communes[wilaya] || [];
}
console.log(getCommunes("Adrar"))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants