Skip to content

Instantly share code, notes, and snippets.

View ejmudi's full-sized avatar

Mudi Ejenavi ejmudi

View GitHub Profile
@ejmudi
ejmudi / official_languages.js
Created December 1, 2023 02:36
Official Languages of the World
// Official languages of the world ordered by number of sovereign countries in which they are de jure or de facto official (or with a national language status)
// Sourced from Wikipedia: https://en.wikipedia.org/wiki/List_of_official_languages#Number_of_countries_with_the_same_official_language
const OFFICIAL_LANGUAGES = [
"English",
"French",
"Arabic",
"Spanish",
"Portuguese",
"German",
/*
Prompt:
We have defined a basic dropdown via the Dropdown and DropdownItem components below, with example usage
in the ExampleNav component. The Dropdown and DropdownItem components have some problems, and also
have room for improvements (doesn't everything?) A couple items TODO here (make sure to explain with comments!)
0. How are you today? 😊
1. Please fix any obvious issues you see with the dropdown.
2. Please then make improvements to the dropdown.