after rendering 250 MenuItem's to SelectField, clicking it takes about 1 second and more to open and close.
this is my code:
<SelectField floatingLabelText="Country" maxHeight={300} autoWidth={true}> {_.values(this.props.state.chatModule.defines.body.countries.data).map((country) => { return (<MenuItem value={country.countryCode} key={country.countryCode} primaryText={country.countryName} leftIcon={<Avatar src={https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/2.1.0/flags/1x1/${country.countryCode.toLowerCase()}.svg} />} />) })} </SelectField>
Versions
Material-UI: 0.14
React: 15
Browser: chrome 50
this is the full object json if you want to reproduce:
{"code":200,"data":{"AD":{"countryCode":"AD","countryName":"Andorra","mainLanguageCode":"CA"},"AE":{"countryCode":"AE","countryName":"United Arab Emirates","mainLanguageCode":"AR"},"AF":{"countryCode":"AF","countryName":"Afghanistan","mainLanguageCode":"FA"},"AG":{"countryCode":"AG","countryName":"Antigua and Barbuda","mainLanguageCode":"EN"},"AI":{"countryCode":"AI","countryName":"Anguilla","mainLanguageCode":"EN"},"AL":{"countryCode":"AL","countryName":"Albania","mainLanguageCode":"SQ"},"AM":{"countryCode":"AM","countryName":"Armenia","mainLanguageCode":"HY"},"AO":{"countryCode":"AO","countryName":"Angola","mainLanguageCode":"PT"},"AQ":{"countryCode":"AQ","countryName":"Antarctica","mainLanguageCode":""},"AR":{"countryCode":"AR","countryName":"Argentina","mainLanguageCode":"ES"},"AS":{"countryCode":"AS","countryName":"American Samoa","mainLanguageCode":"EN"},"AT":{"countryCode":"AT","countryName":"Austria","mainLanguageCode":"DE"},"AU":{"countryCode":"AU","countryName":"Australia","mainLanguageCode":"EN"},"AW":{"countryCode":"AW","countryName":"Aruba","mainLanguageCode":"NL"},"AX":{"countryCode":"AX","countryName":"Åland","mainLanguageCode":"SV"},"AZ":{"countryCode":"AZ","countryName":"Azerbaijan","mainLanguageCode":"AZ"},"BA":{"countryCode":"BA","countryName":"Bosnia and Herzegovina","mainLanguageCode":"BS"},"BB":{"countryCode":"BB","countryName":"Barbados","mainLanguageCode":"EN"},"BD":{"countryCode":"BD","countryName":"Bangladesh","mainLanguageCode":"BN"},"BE":{"countryCode":"BE","countryName":"Belgium","mainLanguageCode":"NL"},"BF":{"countryCode":"BF","countryName":"Burkina Faso","mainLanguageCode":"FR"},"BG":{"countryCode":"BG","countryName":"Bulgaria","mainLanguageCode":"BG"},"BH":{"countryCode":"BH","countryName":"Bahrain","mainLanguageCode":"AR"},"BI":{"countryCode":"BI","countryName":"Burundi","mainLanguageCode":"FR"},"BJ":{"countryCode":"BJ","countryName":"Benin","mainLanguageCode":"FR"},"BL":{"countryCode":"BL","countryName":"Saint Barthélemy","mainLanguageCode":"FR"},"BM":{"countryCode":"BM","countryName":"Bermuda","mainLanguageCode":"EN"},"BN":{"countryCode":"BN","countryName":"Brunei","mainLanguageCode":"MS"},"BO":{"countryCode":"BO","countryName":"Bolivia","mainLanguageCode":"ES"},"BQ":{"countryCode":"BQ","countryName":"Bonaire","mainLanguageCode":"NL"},"BR":{"countryCode":"BR","countryName":"Brazil","mainLanguageCode":"PT"},"BS":{"countryCode":"BS","countryName":"Bahamas","mainLanguageCode":"EN"},"BT":{"countryCode":"BT","countryName":"Bhutan","mainLanguageCode":"DZ"},"BV":{"countryCode":"BV","countryName":"Bouvet Island","mainLanguageCode":""},"BW":{"countryCode":"BW","countryName":"Botswana","mainLanguageCode":"EN"},"BY":{"countryCode":"BY","countryName":"Belarus","mainLanguageCode":"BE"},"BZ":{"countryCode":"BZ","countryName":"Belize","mainLanguageCode":"EN"},"CA":{"countryCode":"CA","countryName":"Canada","mainLanguageCode":"EN"},"CC":{"countryCode":"CC","countryName":"Cocos [Keeling] Islands","mainLanguageCode":"MS"},"CD":{"countryCode":"CD","countryName":"Democratic Republic of the Congo","mainLanguageCode":"FR"},"CF":{"countryCode":"CF","countryName":"Central African Republic","mainLanguageCode":"FR"},"CG":{"countryCode":"CG","countryName":"Republic of the Congo","mainLanguageCode":"FR"},"CH":{"countryCode":"CH","countryName":"Switzerland","mainLanguageCode":"DE"},"CI":{"countryCode":"CI","countryName":"Ivory Coast","mainLanguageCode":"FR"},"CK":{"countryCode":"CK","countryName":"Cook Islands","mainLanguageCode":"EN"},"CL":{"countryCode":"CL","countryName":"Chile","mainLanguageCode":"ES"},"CM":{"countryCode":"CM","countryName":"Cameroon","mainLanguageCode":"EN"},"CN":{"countryCode":"CN","countryName":"China","mainLanguageCode":"ZH"},"CO":{"countryCode":"CO","countryName":"Colombia","mainLanguageCode":"ES"},"CR":{"countryCode":"CR","countryName":"Costa Rica","mainLanguageCode":"ES"},"CU":{"countryCode":"CU","countryName":"Cuba","mainLanguageCode":"ES"},"CV":{"countryCode":"CV","countryName":"Cape Verde","mainLanguageCode":"PT"},"CW":{"countryCode":"CW","countryName":"Curacao","mainLanguageCode":"NL"},"CX":{"countryCode":"CX","countryName":"Christmas Island","mainLanguageCode":"EN"},"CY":{"countryCode":"CY","countryName":"Cyprus","mainLanguageCode":"EL"},"CZ":{"countryCode":"CZ","countryName":"Czech Republic","mainLanguageCode":"CS"},"DE":{"countryCode":"DE","countryName":"Germany","mainLanguageCode":"DE"},"DJ":{"countryCode":"DJ","countryName":"Djibouti","mainLanguageCode":"FR"},"DK":{"countryCode":"DK","countryName":"Denmark","mainLanguageCode":"DA"},"DM":{"countryCode":"DM","countryName":"Dominica","mainLanguageCode":"EN"},"DO":{"countryCode":"DO","countryName":"Dominican Republic","mainLanguageCode":"ES"},"DZ":{"countryCode":"DZ","countryName":"Algeria","mainLanguageCode":"AR"},"EC":{"countryCode":"EC","countryName":"Ecuador","mainLanguageCode":"ES"},"EE":{"countryCode":"EE","countryName":"Estonia","mainLanguageCode":"ET"},"EG":{"countryCode":"EG","countryName":"Egypt","mainLanguageCode":"AR"},"EH":{"countryCode":"EH","countryName":"Western Sahara","mainLanguageCode":"AR"},"ER":{"countryCode":"ER","countryName":"Eritrea","mainLanguageCode":"AA"},"ES":{"countryCode":"ES","countryName":"Spain","mainLanguageCode":"ES"},"ET":{"countryCode":"ET","countryName":"Ethiopia","mainLanguageCode":"AM"},"FI":{"countryCode":"FI","countryName":"Finland","mainLanguageCode":"FI"},"FJ":{"countryCode":"FJ","countryName":"Fiji","mainLanguageCode":"EN"},"FK":{"countryCode":"FK","countryName":"Falkland Islands","mainLanguageCode":"EN"},"FM":{"countryCode":"FM","countryName":"Micronesia","mainLanguageCode":"EN"},"FO":{"countryCode":"FO","countryName":"Faroe Islands","mainLanguageCode":"FO"},"FR":{"countryCode":"FR","countryName":"France","mainLanguageCode":"FR"},"GA":{"countryCode":"GA","countryName":"Gabon","mainLanguageCode":"FR"},"GB":{"countryCode":"GB","countryName":"United Kingdom","mainLanguageCode":"EN"},"GD":{"countryCode":"GD","countryName":"Grenada","mainLanguageCode":"EN"},"GE":{"countryCode":"GE","countryName":"Georgia","mainLanguageCode":"KA"},"GF":{"countryCode":"GF","countryName":"French Guiana","mainLanguageCode":"FR"},"GG":{"countryCode":"GG","countryName":"Guernsey","mainLanguageCode":"EN"},"GH":{"countryCode":"GH","countryName":"Ghana","mainLanguageCode":"EN"},"GI":{"countryCode":"GI","countryName":"Gibraltar","mainLanguageCode":"EN"},"GL":{"countryCode":"GL","countryName":"Greenland","mainLanguageCode":"KL"},"GM":{"countryCode":"GM","countryName":"Gambia","mainLanguageCode":"EN"},"GN":{"countryCode":"GN","countryName":"Guinea","mainLanguageCode":"FR"},"GP":{"countryCode":"GP","countryName":"Guadeloupe","mainLanguageCode":"FR"},"GQ":{"countryCode":"GQ","countryName":"Equatorial Guinea","mainLanguageCode":"ES"},"GR":{"countryCode":"GR","countryName":"Greece","mainLanguageCode":"EL"},"GS":{"countryCode":"GS","countryName":"South Georgia and the South Sandwich Islands","mainLanguageCode":"EN"},"GT":{"countryCode":"GT","countryName":"Guatemala","mainLanguageCode":"ES"},"GU":{"countryCode":"GU","countryName":"Guam","mainLanguageCode":"EN"},"GW":{"countryCode":"GW","countryName":"Guinea-Bissau","mainLanguageCode":"PT"},"GY":{"countryCode":"GY","countryName":"Guyana","mainLanguageCode":"EN"},"HK":{"countryCode":"HK","countryName":"Hong Kong","mainLanguageCode":"ZH"},"HM":{"countryCode":"HM","countryName":"Heard Island and McDonald Islands","mainLanguageCode":""},"HN":{"countryCode":"HN","countryName":"Honduras","mainLanguageCode":"ES"},"HR":{"countryCode":"HR","countryName":"Croatia","mainLanguageCode":"HR"},"HT":{"countryCode":"HT","countryName":"Haiti","mainLanguageCode":"HT"},"HU":{"countryCode":"HU","countryName":"Hungary","mainLanguageCode":"HU"},"ID":{"countryCode":"ID","countryName":"Indonesia","mainLanguageCode":"ID"},"IE":{"countryCode":"IE","countryName":"Ireland","mainLanguageCode":"EN"},"IL":{"countryCode":"IL","countryName":"Israel","mainLanguageCode":"HE"},"IM":{"countryCode":"IM","countryName":"Isle of Man","mainLanguageCode":"EN"},"IN":{"countryCode":"IN","countryName":"India","mainLanguageCode":"EN"},"IO":{"countryCode":"IO","countryName":"British Indian Ocean Territory","mainLanguageCode":"EN"},"IQ":{"countryCode":"IQ","countryName":"Iraq","mainLanguageCode":"AR"},"IR":{"countryCode":"IR","countryName":"Iran","mainLanguageCode":"FA"},"IS":{"countryCode":"IS","countryName":"Iceland","mainLanguageCode":"IS"},"IT":{"countryCode":"IT","countryName":"Italy","mainLanguageCode":"IT"},"JE":{"countryCode":"JE","countryName":"Jersey","mainLanguageCode":"EN"},"JM":{"countryCode":"JM","countryName":"Jamaica","mainLanguageCode":"EN"},"JO":{"countryCode":"JO","countryName":"Jordan","mainLanguageCode":"AR"},"JP":{"countryCode":"JP","countryName":"Japan","mainLanguageCode":"JA"},"KE":{"countryCode":"KE","countryName":"Kenya","mainLanguageCode":"EN"},"KG":{"countryCode":"KG","countryName":"Kyrgyzstan","mainLanguageCode":"KY"},"KH":{"countryCode":"KH","countryName":"Cambodia","mainLanguageCode":"KM"},"KI":{"countryCode":"KI","countryName":"Kiribati","mainLanguageCode":"EN"},"KM":{"countryCode":"KM","countryName":"Comoros","mainLanguageCode":"AR"},"KN":{"countryCode":"KN","countryName":"Saint Kitts and Nevis","mainLanguageCode":"EN"},"KP":{"countryCode":"KP","countryName":"North Korea","mainLanguageCode":"KO"},"KR":{"countryCode":"KR","countryName":"South Korea","mainLanguageCode":"KO"},"KW":{"countryCode":"KW","countryName":"Kuwait","mainLanguageCode":"AR"},"KY":{"countryCode":"KY","countryName":"Cayman Islands","mainLanguageCode":"EN"},"KZ":{"countryCode":"KZ","countryName":"Kazakhstan","mainLanguageCode":"KK"},"LA":{"countryCode":"LA","countryName":"Laos","mainLanguageCode":"LO"},"LB":{"countryCode":"LB","countryName":"Lebanon","mainLanguageCode":"AR"},"LC":{"countryCode":"LC","countryName":"Saint Lucia","mainLanguageCode":"EN"},"LI":{"countryCode":"LI","countryName":"Liechtenstein","mainLanguageCode":"DE"},"LK":{"countryCode":"LK","countryName":"Sri Lanka","mainLanguageCode":"SI"},"LR":{"countryCode":"LR","countryName":"Liberia","mainLanguageCode":"EN"},"LS":{"countryCode":"LS","countryName":"Lesotho","mainLanguageCode":"EN"},"LT":{"countryCode":"LT","countryName":"Lithuania","mainLanguageCode":"LT"},"LU":{"countryCode":"LU","countryName":"Luxembourg","mainLanguageCode":"LB"},"LV":{"countryCode":"LV","countryName":"Latvia","mainLanguageCode":"LV"},"LY":{"countryCode":"LY","countryName":"Libya","mainLanguageCode":"AR"},"MA":{"countryCode":"MA","countryName":"Morocco","mainLanguageCode":"AR"},"MC":{"countryCode":"MC","countryName":"Monaco","mainLanguageCode":"FR"},"MD":{"countryCode":"MD","countryName":"Moldova","mainLanguageCode":"RO"},"ME":{"countryCode":"ME","countryName":"Montenegro","mainLanguageCode":"SR"},"MF":{"countryCode":"MF","countryName":"Saint Martin","mainLanguageCode":"FR"},"MG":{"countryCode":"MG","countryName":"Madagascar","mainLanguageCode":"FR"},"MH":{"countryCode":"MH","countryName":"Marshall Islands","mainLanguageCode":"MH"},"MK":{"countryCode":"MK","countryName":"Macedonia","mainLanguageCode":"MK"},"ML":{"countryCode":"ML","countryName":"Mali","mainLanguageCode":"FR"},"MM":{"countryCode":"MM","countryName":"Myanmar [Burma]","mainLanguageCode":"MY"},"MN":{"countryCode":"MN","countryName":"Mongolia","mainLanguageCode":"MN"},"MO":{"countryCode":"MO","countryName":"Macao","mainLanguageCode":"ZH"},"MP":{"countryCode":"MP","countryName":"Northern Mariana Islands","mainLanguageCode":"FI"},"MQ":{"countryCode":"MQ","countryName":"Martinique","mainLanguageCode":"FR"},"MR":{"countryCode":"MR","countryName":"Mauritania","mainLanguageCode":"AR"},"MS":{"countryCode":"MS","countryName":"Montserrat","mainLanguageCode":"EN"},"MT":{"countryCode":"MT","countryName":"Malta","mainLanguageCode":"MT"},"MU":{"countryCode":"MU","countryName":"Mauritius","mainLanguageCode":"EN"},"MV":{"countryCode":"MV","countryName":"Maldives","mainLanguageCode":"DV"},"MW":{"countryCode":"MW","countryName":"Malawi","mainLanguageCode":"NY"},"MX":{"countryCode":"MX","countryName":"Mexico","mainLanguageCode":"ES"},"MY":{"countryCode":"MY","countryName":"Malaysia","mainLanguageCode":"MS"},"MZ":{"countryCode":"MZ","countryName":"Mozambique","mainLanguageCode":"PT"},"NA":{"countryCode":"NA","countryName":"Namibia","mainLanguageCode":"EN"},"NC":{"countryCode":"NC","countryName":"New Caledonia","mainLanguageCode":"FR"},"NE":{"countryCode":"NE","countryName":"Niger","mainLanguageCode":"FR"},"NF":{"countryCode":"NF","countryName":"Norfolk Island","mainLanguageCode":"EN"},"NG":{"countryCode":"NG","countryName":"Nigeria","mainLanguageCode":"EN"},"NI":{"countryCode":"NI","countryName":"Nicaragua","mainLanguageCode":"ES"},"NL":{"countryCode":"NL","countryName":"Netherlands","mainLanguageCode":"NL"},"NO":{"countryCode":"NO","countryName":"Norway","mainLanguageCode":"NO"},"NP":{"countryCode":"NP","countryName":"Nepal","mainLanguageCode":"NE"},"NR":{"countryCode":"NR","countryName":"Nauru","mainLanguageCode":"NA"},"NU":{"countryCode":"NU","countryName":"Niue","mainLanguageCode":"NI"},"NZ":{"countryCode":"NZ","countryName":"New Zealand","mainLanguageCode":"EN"},"OM":{"countryCode":"OM","countryName":"Oman","mainLanguageCode":"AR"},"PA":{"countryCode":"PA","countryName":"Panama","mainLanguageCode":"ES"},"PE":{"countryCode":"PE","countryName":"Peru","mainLanguageCode":"ES"},"PF":{"countryCode":"PF","countryName":"French Polynesia","mainLanguageCode":"FR"},"PG":{"countryCode":"PG","countryName":"Papua New Guinea","mainLanguageCode":"EN"},"PH":{"countryCode":"PH","countryName":"Philippines","mainLanguageCode":"TL"},"PK":{"countryCode":"PK","countryName":"Pakistan","mainLanguageCode":"UR"},"PL":{"countryCode":"PL","countryName":"Poland","mainLanguageCode":"PL"},"PM":{"countryCode":"PM","countryName":"Saint Pierre and Miquelon","mainLanguageCode":"FR"},"PN":{"countryCode":"PN","countryName":"Pitcairn Islands","mainLanguageCode":"EN"},"PR":{"countryCode":"PR","countryName":"Puerto Rico","mainLanguageCode":"EN"},"PS":{"countryCode":"PS","countryName":"Palestine","mainLanguageCode":"AR"},"PT":{"countryCode":"PT","countryName":"Portugal","mainLanguageCode":"PT"},"PW":{"countryCode":"PW","countryName":"Palau","mainLanguageCode":"PA"},"PY":{"countryCode":"PY","countryName":"Paraguay","mainLanguageCode":"ES"},"QA":{"countryCode":"QA","countryName":"Qatar","mainLanguageCode":"AR"},"RE":{"countryCode":"RE","countryName":"Réunion","mainLanguageCode":"FR"},"RO":{"countryCode":"RO","countryName":"Romania","mainLanguageCode":"RO"},"RS":{"countryCode":"RS","countryName":"Serbia","mainLanguageCode":"SR"},"RU":{"countryCode":"RU","countryName":"Russia","mainLanguageCode":"RU"},"RW":{"countryCode":"RW","countryName":"Rwanda","mainLanguageCode":"RW"},"SA":{"countryCode":"SA","countryName":"Saudi Arabia","mainLanguageCode":"AR"},"SB":{"countryCode":"SB","countryName":"Solomon Islands","mainLanguageCode":"EN"},"SC":{"countryCode":"SC","countryName":"Seychelles","mainLanguageCode":"EN"},"SD":{"countryCode":"SD","countryName":"Sudan","mainLanguageCode":"AR"},"SE":{"countryCode":"SE","countryName":"Sweden","mainLanguageCode":"SV"},"SG":{"countryCode":"SG","countryName":"Singapore","mainLanguageCode":"CM"},"SH":{"countryCode":"SH","countryName":"Saint Helena","mainLanguageCode":"EN"},"SI":{"countryCode":"SI","countryName":"Slovenia","mainLanguageCode":"SL"},"SJ":{"countryCode":"SJ","countryName":"Svalbard and Jan Mayen","mainLanguageCode":"NO"},"SK":{"countryCode":"SK","countryName":"Slovakia","mainLanguageCode":"SK"},"SL":{"countryCode":"SL","countryName":"Sierra Leone","mainLanguageCode":"EN"},"SM":{"countryCode":"SM","countryName":"San Marino","mainLanguageCode":"IT"},"SN":{"countryCode":"SN","countryName":"Senegal","mainLanguageCode":"FR"},"SO":{"countryCode":"SO","countryName":"Somalia","mainLanguageCode":"SO"},"SR":{"countryCode":"SR","countryName":"Suriname","mainLanguageCode":"NL"},"SS":{"countryCode":"SS","countryName":"South Sudan","mainLanguageCode":"EN"},"ST":{"countryCode":"ST","countryName":"São Tomé and Príncipe","mainLanguageCode":"PT"},"SV":{"countryCode":"SV","countryName":"El Salvador","mainLanguageCode":"ES"},"SX":{"countryCode":"SX","countryName":"Sint Maarten","mainLanguageCode":"NL"},"SY":{"countryCode":"SY","countryName":"Syria","mainLanguageCode":"AR"},"SZ":{"countryCode":"SZ","countryName":"Swaziland","mainLanguageCode":"EN"},"TC":{"countryCode":"TC","countryName":"Turks and Caicos Islands","mainLanguageCode":"EN"},"TD":{"countryCode":"TD","countryName":"Chad","mainLanguageCode":"FR"},"TF":{"countryCode":"TF","countryName":"French Southern Territories","mainLanguageCode":"FR"},"TG":{"countryCode":"TG","countryName":"Togo","mainLanguageCode":"FR"},"TH":{"countryCode":"TH","countryName":"Thailand","mainLanguageCode":"TH"},"TJ":{"countryCode":"TJ","countryName":"Tajikistan","mainLanguageCode":"TG"},"TK":{"countryCode":"TK","countryName":"Tokelau","mainLanguageCode":"TK"},"TL":{"countryCode":"TL","countryName":"East Timor","mainLanguageCode":"TE"},"TM":{"countryCode":"TM","countryName":"Turkmenistan","mainLanguageCode":"TK"},"TN":{"countryCode":"TN","countryName":"Tunisia","mainLanguageCode":"AR"},"TO":{"countryCode":"TO","countryName":"Tonga","mainLanguageCode":"TO"},"TR":{"countryCode":"TR","countryName":"Turkey","mainLanguageCode":"TR"},"TT":{"countryCode":"TT","countryName":"Trinidad and Tobago","mainLanguageCode":"EN"},"TV":{"countryCode":"TV","countryName":"Tuvalu","mainLanguageCode":"TV"},"TW":{"countryCode":"TW","countryName":"Taiwan","mainLanguageCode":"ZH"},"TZ":{"countryCode":"TZ","countryName":"Tanzania","mainLanguageCode":"SW"},"UA":{"countryCode":"UA","countryName":"Ukraine","mainLanguageCode":"UK"},"UG":{"countryCode":"UG","countryName":"Uganda","mainLanguageCode":"EN"},"UM":{"countryCode":"UM","countryName":"U.S. Minor Outlying Islands","mainLanguageCode":"EN"},"US":{"countryCode":"US","countryName":"United States","mainLanguageCode":"EN"},"UY":{"countryCode":"UY","countryName":"Uruguay","mainLanguageCode":"ES"},"UZ":{"countryCode":"UZ","countryName":"Uzbekistan","mainLanguageCode":"UZ"},"VA":{"countryCode":"VA","countryName":"Vatican City","mainLanguageCode":"LA"},"VC":{"countryCode":"VC","countryName":"Saint Vincent and the Grenadines","mainLanguageCode":"EN"},"VE":{"countryCode":"VE","countryName":"Venezuela","mainLanguageCode":"ES"},"VG":{"countryCode":"VG","countryName":"British Virgin Islands","mainLanguageCode":"EN"},"VI":{"countryCode":"VI","countryName":"U.S. Virgin Islands","mainLanguageCode":"EN"},"VN":{"countryCode":"VN","countryName":"Vietnam","mainLanguageCode":"VI"},"VU":{"countryCode":"VU","countryName":"Vanuatu","mainLanguageCode":"BI"},"WF":{"countryCode":"WF","countryName":"Wallis and Futuna","mainLanguageCode":"WL"},"WS":{"countryCode":"WS","countryName":"Samoa","mainLanguageCode":"SM"},"XK":{"countryCode":"XK","countryName":"Kosovo","mainLanguageCode":"SQ"},"YE":{"countryCode":"YE","countryName":"Yemen","mainLanguageCode":"AR"},"YT":{"countryCode":"YT","countryName":"Mayotte","mainLanguageCode":"FR"},"ZA":{"countryCode":"ZA","countryName":"South Africa","mainLanguageCode":"ZU"},"ZM":{"countryCode":"ZM","countryName":"Zambia","mainLanguageCode":"EN"},"ZW":{"countryCode":"ZW","countryName":"Zimbabwe","mainLanguageCode":
after rendering 250 MenuItem's to SelectField, clicking it takes about 1 second and more to open and close.
this is my code:
<SelectField floatingLabelText="Country" maxHeight={300} autoWidth={true}> {_.values(this.props.state.chatModule.defines.body.countries.data).map((country) => { return (<MenuItem value={country.countryCode} key={country.countryCode} primaryText={country.countryName} leftIcon={<Avatar src={
https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/2.1.0/flags/1x1/${country.countryCode.toLowerCase()}.svg} />} />) })} </SelectField>
Versions
this is the full object json if you want to reproduce: {"code":200,"data":{"AD":{"countryCode":"AD","countryName":"Andorra","mainLanguageCode":"CA"},"AE":{"countryCode":"AE","countryName":"United Arab Emirates","mainLanguageCode":"AR"},"AF":{"countryCode":"AF","countryName":"Afghanistan","mainLanguageCode":"FA"},"AG":{"countryCode":"AG","countryName":"Antigua and Barbuda","mainLanguageCode":"EN"},"AI":{"countryCode":"AI","countryName":"Anguilla","mainLanguageCode":"EN"},"AL":{"countryCode":"AL","countryName":"Albania","mainLanguageCode":"SQ"},"AM":{"countryCode":"AM","countryName":"Armenia","mainLanguageCode":"HY"},"AO":{"countryCode":"AO","countryName":"Angola","mainLanguageCode":"PT"},"AQ":{"countryCode":"AQ","countryName":"Antarctica","mainLanguageCode":""},"AR":{"countryCode":"AR","countryName":"Argentina","mainLanguageCode":"ES"},"AS":{"countryCode":"AS","countryName":"American Samoa","mainLanguageCode":"EN"},"AT":{"countryCode":"AT","countryName":"Austria","mainLanguageCode":"DE"},"AU":{"countryCode":"AU","countryName":"Australia","mainLanguageCode":"EN"},"AW":{"countryCode":"AW","countryName":"Aruba","mainLanguageCode":"NL"},"AX":{"countryCode":"AX","countryName":"Åland","mainLanguageCode":"SV"},"AZ":{"countryCode":"AZ","countryName":"Azerbaijan","mainLanguageCode":"AZ"},"BA":{"countryCode":"BA","countryName":"Bosnia and Herzegovina","mainLanguageCode":"BS"},"BB":{"countryCode":"BB","countryName":"Barbados","mainLanguageCode":"EN"},"BD":{"countryCode":"BD","countryName":"Bangladesh","mainLanguageCode":"BN"},"BE":{"countryCode":"BE","countryName":"Belgium","mainLanguageCode":"NL"},"BF":{"countryCode":"BF","countryName":"Burkina Faso","mainLanguageCode":"FR"},"BG":{"countryCode":"BG","countryName":"Bulgaria","mainLanguageCode":"BG"},"BH":{"countryCode":"BH","countryName":"Bahrain","mainLanguageCode":"AR"},"BI":{"countryCode":"BI","countryName":"Burundi","mainLanguageCode":"FR"},"BJ":{"countryCode":"BJ","countryName":"Benin","mainLanguageCode":"FR"},"BL":{"countryCode":"BL","countryName":"Saint Barthélemy","mainLanguageCode":"FR"},"BM":{"countryCode":"BM","countryName":"Bermuda","mainLanguageCode":"EN"},"BN":{"countryCode":"BN","countryName":"Brunei","mainLanguageCode":"MS"},"BO":{"countryCode":"BO","countryName":"Bolivia","mainLanguageCode":"ES"},"BQ":{"countryCode":"BQ","countryName":"Bonaire","mainLanguageCode":"NL"},"BR":{"countryCode":"BR","countryName":"Brazil","mainLanguageCode":"PT"},"BS":{"countryCode":"BS","countryName":"Bahamas","mainLanguageCode":"EN"},"BT":{"countryCode":"BT","countryName":"Bhutan","mainLanguageCode":"DZ"},"BV":{"countryCode":"BV","countryName":"Bouvet Island","mainLanguageCode":""},"BW":{"countryCode":"BW","countryName":"Botswana","mainLanguageCode":"EN"},"BY":{"countryCode":"BY","countryName":"Belarus","mainLanguageCode":"BE"},"BZ":{"countryCode":"BZ","countryName":"Belize","mainLanguageCode":"EN"},"CA":{"countryCode":"CA","countryName":"Canada","mainLanguageCode":"EN"},"CC":{"countryCode":"CC","countryName":"Cocos [Keeling] Islands","mainLanguageCode":"MS"},"CD":{"countryCode":"CD","countryName":"Democratic Republic of the Congo","mainLanguageCode":"FR"},"CF":{"countryCode":"CF","countryName":"Central African Republic","mainLanguageCode":"FR"},"CG":{"countryCode":"CG","countryName":"Republic of the Congo","mainLanguageCode":"FR"},"CH":{"countryCode":"CH","countryName":"Switzerland","mainLanguageCode":"DE"},"CI":{"countryCode":"CI","countryName":"Ivory Coast","mainLanguageCode":"FR"},"CK":{"countryCode":"CK","countryName":"Cook Islands","mainLanguageCode":"EN"},"CL":{"countryCode":"CL","countryName":"Chile","mainLanguageCode":"ES"},"CM":{"countryCode":"CM","countryName":"Cameroon","mainLanguageCode":"EN"},"CN":{"countryCode":"CN","countryName":"China","mainLanguageCode":"ZH"},"CO":{"countryCode":"CO","countryName":"Colombia","mainLanguageCode":"ES"},"CR":{"countryCode":"CR","countryName":"Costa Rica","mainLanguageCode":"ES"},"CU":{"countryCode":"CU","countryName":"Cuba","mainLanguageCode":"ES"},"CV":{"countryCode":"CV","countryName":"Cape Verde","mainLanguageCode":"PT"},"CW":{"countryCode":"CW","countryName":"Curacao","mainLanguageCode":"NL"},"CX":{"countryCode":"CX","countryName":"Christmas Island","mainLanguageCode":"EN"},"CY":{"countryCode":"CY","countryName":"Cyprus","mainLanguageCode":"EL"},"CZ":{"countryCode":"CZ","countryName":"Czech Republic","mainLanguageCode":"CS"},"DE":{"countryCode":"DE","countryName":"Germany","mainLanguageCode":"DE"},"DJ":{"countryCode":"DJ","countryName":"Djibouti","mainLanguageCode":"FR"},"DK":{"countryCode":"DK","countryName":"Denmark","mainLanguageCode":"DA"},"DM":{"countryCode":"DM","countryName":"Dominica","mainLanguageCode":"EN"},"DO":{"countryCode":"DO","countryName":"Dominican Republic","mainLanguageCode":"ES"},"DZ":{"countryCode":"DZ","countryName":"Algeria","mainLanguageCode":"AR"},"EC":{"countryCode":"EC","countryName":"Ecuador","mainLanguageCode":"ES"},"EE":{"countryCode":"EE","countryName":"Estonia","mainLanguageCode":"ET"},"EG":{"countryCode":"EG","countryName":"Egypt","mainLanguageCode":"AR"},"EH":{"countryCode":"EH","countryName":"Western Sahara","mainLanguageCode":"AR"},"ER":{"countryCode":"ER","countryName":"Eritrea","mainLanguageCode":"AA"},"ES":{"countryCode":"ES","countryName":"Spain","mainLanguageCode":"ES"},"ET":{"countryCode":"ET","countryName":"Ethiopia","mainLanguageCode":"AM"},"FI":{"countryCode":"FI","countryName":"Finland","mainLanguageCode":"FI"},"FJ":{"countryCode":"FJ","countryName":"Fiji","mainLanguageCode":"EN"},"FK":{"countryCode":"FK","countryName":"Falkland Islands","mainLanguageCode":"EN"},"FM":{"countryCode":"FM","countryName":"Micronesia","mainLanguageCode":"EN"},"FO":{"countryCode":"FO","countryName":"Faroe Islands","mainLanguageCode":"FO"},"FR":{"countryCode":"FR","countryName":"France","mainLanguageCode":"FR"},"GA":{"countryCode":"GA","countryName":"Gabon","mainLanguageCode":"FR"},"GB":{"countryCode":"GB","countryName":"United Kingdom","mainLanguageCode":"EN"},"GD":{"countryCode":"GD","countryName":"Grenada","mainLanguageCode":"EN"},"GE":{"countryCode":"GE","countryName":"Georgia","mainLanguageCode":"KA"},"GF":{"countryCode":"GF","countryName":"French Guiana","mainLanguageCode":"FR"},"GG":{"countryCode":"GG","countryName":"Guernsey","mainLanguageCode":"EN"},"GH":{"countryCode":"GH","countryName":"Ghana","mainLanguageCode":"EN"},"GI":{"countryCode":"GI","countryName":"Gibraltar","mainLanguageCode":"EN"},"GL":{"countryCode":"GL","countryName":"Greenland","mainLanguageCode":"KL"},"GM":{"countryCode":"GM","countryName":"Gambia","mainLanguageCode":"EN"},"GN":{"countryCode":"GN","countryName":"Guinea","mainLanguageCode":"FR"},"GP":{"countryCode":"GP","countryName":"Guadeloupe","mainLanguageCode":"FR"},"GQ":{"countryCode":"GQ","countryName":"Equatorial Guinea","mainLanguageCode":"ES"},"GR":{"countryCode":"GR","countryName":"Greece","mainLanguageCode":"EL"},"GS":{"countryCode":"GS","countryName":"South Georgia and the South Sandwich Islands","mainLanguageCode":"EN"},"GT":{"countryCode":"GT","countryName":"Guatemala","mainLanguageCode":"ES"},"GU":{"countryCode":"GU","countryName":"Guam","mainLanguageCode":"EN"},"GW":{"countryCode":"GW","countryName":"Guinea-Bissau","mainLanguageCode":"PT"},"GY":{"countryCode":"GY","countryName":"Guyana","mainLanguageCode":"EN"},"HK":{"countryCode":"HK","countryName":"Hong Kong","mainLanguageCode":"ZH"},"HM":{"countryCode":"HM","countryName":"Heard Island and McDonald Islands","mainLanguageCode":""},"HN":{"countryCode":"HN","countryName":"Honduras","mainLanguageCode":"ES"},"HR":{"countryCode":"HR","countryName":"Croatia","mainLanguageCode":"HR"},"HT":{"countryCode":"HT","countryName":"Haiti","mainLanguageCode":"HT"},"HU":{"countryCode":"HU","countryName":"Hungary","mainLanguageCode":"HU"},"ID":{"countryCode":"ID","countryName":"Indonesia","mainLanguageCode":"ID"},"IE":{"countryCode":"IE","countryName":"Ireland","mainLanguageCode":"EN"},"IL":{"countryCode":"IL","countryName":"Israel","mainLanguageCode":"HE"},"IM":{"countryCode":"IM","countryName":"Isle of Man","mainLanguageCode":"EN"},"IN":{"countryCode":"IN","countryName":"India","mainLanguageCode":"EN"},"IO":{"countryCode":"IO","countryName":"British Indian Ocean Territory","mainLanguageCode":"EN"},"IQ":{"countryCode":"IQ","countryName":"Iraq","mainLanguageCode":"AR"},"IR":{"countryCode":"IR","countryName":"Iran","mainLanguageCode":"FA"},"IS":{"countryCode":"IS","countryName":"Iceland","mainLanguageCode":"IS"},"IT":{"countryCode":"IT","countryName":"Italy","mainLanguageCode":"IT"},"JE":{"countryCode":"JE","countryName":"Jersey","mainLanguageCode":"EN"},"JM":{"countryCode":"JM","countryName":"Jamaica","mainLanguageCode":"EN"},"JO":{"countryCode":"JO","countryName":"Jordan","mainLanguageCode":"AR"},"JP":{"countryCode":"JP","countryName":"Japan","mainLanguageCode":"JA"},"KE":{"countryCode":"KE","countryName":"Kenya","mainLanguageCode":"EN"},"KG":{"countryCode":"KG","countryName":"Kyrgyzstan","mainLanguageCode":"KY"},"KH":{"countryCode":"KH","countryName":"Cambodia","mainLanguageCode":"KM"},"KI":{"countryCode":"KI","countryName":"Kiribati","mainLanguageCode":"EN"},"KM":{"countryCode":"KM","countryName":"Comoros","mainLanguageCode":"AR"},"KN":{"countryCode":"KN","countryName":"Saint Kitts and Nevis","mainLanguageCode":"EN"},"KP":{"countryCode":"KP","countryName":"North Korea","mainLanguageCode":"KO"},"KR":{"countryCode":"KR","countryName":"South Korea","mainLanguageCode":"KO"},"KW":{"countryCode":"KW","countryName":"Kuwait","mainLanguageCode":"AR"},"KY":{"countryCode":"KY","countryName":"Cayman Islands","mainLanguageCode":"EN"},"KZ":{"countryCode":"KZ","countryName":"Kazakhstan","mainLanguageCode":"KK"},"LA":{"countryCode":"LA","countryName":"Laos","mainLanguageCode":"LO"},"LB":{"countryCode":"LB","countryName":"Lebanon","mainLanguageCode":"AR"},"LC":{"countryCode":"LC","countryName":"Saint Lucia","mainLanguageCode":"EN"},"LI":{"countryCode":"LI","countryName":"Liechtenstein","mainLanguageCode":"DE"},"LK":{"countryCode":"LK","countryName":"Sri Lanka","mainLanguageCode":"SI"},"LR":{"countryCode":"LR","countryName":"Liberia","mainLanguageCode":"EN"},"LS":{"countryCode":"LS","countryName":"Lesotho","mainLanguageCode":"EN"},"LT":{"countryCode":"LT","countryName":"Lithuania","mainLanguageCode":"LT"},"LU":{"countryCode":"LU","countryName":"Luxembourg","mainLanguageCode":"LB"},"LV":{"countryCode":"LV","countryName":"Latvia","mainLanguageCode":"LV"},"LY":{"countryCode":"LY","countryName":"Libya","mainLanguageCode":"AR"},"MA":{"countryCode":"MA","countryName":"Morocco","mainLanguageCode":"AR"},"MC":{"countryCode":"MC","countryName":"Monaco","mainLanguageCode":"FR"},"MD":{"countryCode":"MD","countryName":"Moldova","mainLanguageCode":"RO"},"ME":{"countryCode":"ME","countryName":"Montenegro","mainLanguageCode":"SR"},"MF":{"countryCode":"MF","countryName":"Saint Martin","mainLanguageCode":"FR"},"MG":{"countryCode":"MG","countryName":"Madagascar","mainLanguageCode":"FR"},"MH":{"countryCode":"MH","countryName":"Marshall Islands","mainLanguageCode":"MH"},"MK":{"countryCode":"MK","countryName":"Macedonia","mainLanguageCode":"MK"},"ML":{"countryCode":"ML","countryName":"Mali","mainLanguageCode":"FR"},"MM":{"countryCode":"MM","countryName":"Myanmar [Burma]","mainLanguageCode":"MY"},"MN":{"countryCode":"MN","countryName":"Mongolia","mainLanguageCode":"MN"},"MO":{"countryCode":"MO","countryName":"Macao","mainLanguageCode":"ZH"},"MP":{"countryCode":"MP","countryName":"Northern Mariana Islands","mainLanguageCode":"FI"},"MQ":{"countryCode":"MQ","countryName":"Martinique","mainLanguageCode":"FR"},"MR":{"countryCode":"MR","countryName":"Mauritania","mainLanguageCode":"AR"},"MS":{"countryCode":"MS","countryName":"Montserrat","mainLanguageCode":"EN"},"MT":{"countryCode":"MT","countryName":"Malta","mainLanguageCode":"MT"},"MU":{"countryCode":"MU","countryName":"Mauritius","mainLanguageCode":"EN"},"MV":{"countryCode":"MV","countryName":"Maldives","mainLanguageCode":"DV"},"MW":{"countryCode":"MW","countryName":"Malawi","mainLanguageCode":"NY"},"MX":{"countryCode":"MX","countryName":"Mexico","mainLanguageCode":"ES"},"MY":{"countryCode":"MY","countryName":"Malaysia","mainLanguageCode":"MS"},"MZ":{"countryCode":"MZ","countryName":"Mozambique","mainLanguageCode":"PT"},"NA":{"countryCode":"NA","countryName":"Namibia","mainLanguageCode":"EN"},"NC":{"countryCode":"NC","countryName":"New Caledonia","mainLanguageCode":"FR"},"NE":{"countryCode":"NE","countryName":"Niger","mainLanguageCode":"FR"},"NF":{"countryCode":"NF","countryName":"Norfolk Island","mainLanguageCode":"EN"},"NG":{"countryCode":"NG","countryName":"Nigeria","mainLanguageCode":"EN"},"NI":{"countryCode":"NI","countryName":"Nicaragua","mainLanguageCode":"ES"},"NL":{"countryCode":"NL","countryName":"Netherlands","mainLanguageCode":"NL"},"NO":{"countryCode":"NO","countryName":"Norway","mainLanguageCode":"NO"},"NP":{"countryCode":"NP","countryName":"Nepal","mainLanguageCode":"NE"},"NR":{"countryCode":"NR","countryName":"Nauru","mainLanguageCode":"NA"},"NU":{"countryCode":"NU","countryName":"Niue","mainLanguageCode":"NI"},"NZ":{"countryCode":"NZ","countryName":"New Zealand","mainLanguageCode":"EN"},"OM":{"countryCode":"OM","countryName":"Oman","mainLanguageCode":"AR"},"PA":{"countryCode":"PA","countryName":"Panama","mainLanguageCode":"ES"},"PE":{"countryCode":"PE","countryName":"Peru","mainLanguageCode":"ES"},"PF":{"countryCode":"PF","countryName":"French Polynesia","mainLanguageCode":"FR"},"PG":{"countryCode":"PG","countryName":"Papua New Guinea","mainLanguageCode":"EN"},"PH":{"countryCode":"PH","countryName":"Philippines","mainLanguageCode":"TL"},"PK":{"countryCode":"PK","countryName":"Pakistan","mainLanguageCode":"UR"},"PL":{"countryCode":"PL","countryName":"Poland","mainLanguageCode":"PL"},"PM":{"countryCode":"PM","countryName":"Saint Pierre and Miquelon","mainLanguageCode":"FR"},"PN":{"countryCode":"PN","countryName":"Pitcairn Islands","mainLanguageCode":"EN"},"PR":{"countryCode":"PR","countryName":"Puerto Rico","mainLanguageCode":"EN"},"PS":{"countryCode":"PS","countryName":"Palestine","mainLanguageCode":"AR"},"PT":{"countryCode":"PT","countryName":"Portugal","mainLanguageCode":"PT"},"PW":{"countryCode":"PW","countryName":"Palau","mainLanguageCode":"PA"},"PY":{"countryCode":"PY","countryName":"Paraguay","mainLanguageCode":"ES"},"QA":{"countryCode":"QA","countryName":"Qatar","mainLanguageCode":"AR"},"RE":{"countryCode":"RE","countryName":"Réunion","mainLanguageCode":"FR"},"RO":{"countryCode":"RO","countryName":"Romania","mainLanguageCode":"RO"},"RS":{"countryCode":"RS","countryName":"Serbia","mainLanguageCode":"SR"},"RU":{"countryCode":"RU","countryName":"Russia","mainLanguageCode":"RU"},"RW":{"countryCode":"RW","countryName":"Rwanda","mainLanguageCode":"RW"},"SA":{"countryCode":"SA","countryName":"Saudi Arabia","mainLanguageCode":"AR"},"SB":{"countryCode":"SB","countryName":"Solomon Islands","mainLanguageCode":"EN"},"SC":{"countryCode":"SC","countryName":"Seychelles","mainLanguageCode":"EN"},"SD":{"countryCode":"SD","countryName":"Sudan","mainLanguageCode":"AR"},"SE":{"countryCode":"SE","countryName":"Sweden","mainLanguageCode":"SV"},"SG":{"countryCode":"SG","countryName":"Singapore","mainLanguageCode":"CM"},"SH":{"countryCode":"SH","countryName":"Saint Helena","mainLanguageCode":"EN"},"SI":{"countryCode":"SI","countryName":"Slovenia","mainLanguageCode":"SL"},"SJ":{"countryCode":"SJ","countryName":"Svalbard and Jan Mayen","mainLanguageCode":"NO"},"SK":{"countryCode":"SK","countryName":"Slovakia","mainLanguageCode":"SK"},"SL":{"countryCode":"SL","countryName":"Sierra Leone","mainLanguageCode":"EN"},"SM":{"countryCode":"SM","countryName":"San Marino","mainLanguageCode":"IT"},"SN":{"countryCode":"SN","countryName":"Senegal","mainLanguageCode":"FR"},"SO":{"countryCode":"SO","countryName":"Somalia","mainLanguageCode":"SO"},"SR":{"countryCode":"SR","countryName":"Suriname","mainLanguageCode":"NL"},"SS":{"countryCode":"SS","countryName":"South Sudan","mainLanguageCode":"EN"},"ST":{"countryCode":"ST","countryName":"São Tomé and Príncipe","mainLanguageCode":"PT"},"SV":{"countryCode":"SV","countryName":"El Salvador","mainLanguageCode":"ES"},"SX":{"countryCode":"SX","countryName":"Sint Maarten","mainLanguageCode":"NL"},"SY":{"countryCode":"SY","countryName":"Syria","mainLanguageCode":"AR"},"SZ":{"countryCode":"SZ","countryName":"Swaziland","mainLanguageCode":"EN"},"TC":{"countryCode":"TC","countryName":"Turks and Caicos Islands","mainLanguageCode":"EN"},"TD":{"countryCode":"TD","countryName":"Chad","mainLanguageCode":"FR"},"TF":{"countryCode":"TF","countryName":"French Southern Territories","mainLanguageCode":"FR"},"TG":{"countryCode":"TG","countryName":"Togo","mainLanguageCode":"FR"},"TH":{"countryCode":"TH","countryName":"Thailand","mainLanguageCode":"TH"},"TJ":{"countryCode":"TJ","countryName":"Tajikistan","mainLanguageCode":"TG"},"TK":{"countryCode":"TK","countryName":"Tokelau","mainLanguageCode":"TK"},"TL":{"countryCode":"TL","countryName":"East Timor","mainLanguageCode":"TE"},"TM":{"countryCode":"TM","countryName":"Turkmenistan","mainLanguageCode":"TK"},"TN":{"countryCode":"TN","countryName":"Tunisia","mainLanguageCode":"AR"},"TO":{"countryCode":"TO","countryName":"Tonga","mainLanguageCode":"TO"},"TR":{"countryCode":"TR","countryName":"Turkey","mainLanguageCode":"TR"},"TT":{"countryCode":"TT","countryName":"Trinidad and Tobago","mainLanguageCode":"EN"},"TV":{"countryCode":"TV","countryName":"Tuvalu","mainLanguageCode":"TV"},"TW":{"countryCode":"TW","countryName":"Taiwan","mainLanguageCode":"ZH"},"TZ":{"countryCode":"TZ","countryName":"Tanzania","mainLanguageCode":"SW"},"UA":{"countryCode":"UA","countryName":"Ukraine","mainLanguageCode":"UK"},"UG":{"countryCode":"UG","countryName":"Uganda","mainLanguageCode":"EN"},"UM":{"countryCode":"UM","countryName":"U.S. Minor Outlying Islands","mainLanguageCode":"EN"},"US":{"countryCode":"US","countryName":"United States","mainLanguageCode":"EN"},"UY":{"countryCode":"UY","countryName":"Uruguay","mainLanguageCode":"ES"},"UZ":{"countryCode":"UZ","countryName":"Uzbekistan","mainLanguageCode":"UZ"},"VA":{"countryCode":"VA","countryName":"Vatican City","mainLanguageCode":"LA"},"VC":{"countryCode":"VC","countryName":"Saint Vincent and the Grenadines","mainLanguageCode":"EN"},"VE":{"countryCode":"VE","countryName":"Venezuela","mainLanguageCode":"ES"},"VG":{"countryCode":"VG","countryName":"British Virgin Islands","mainLanguageCode":"EN"},"VI":{"countryCode":"VI","countryName":"U.S. Virgin Islands","mainLanguageCode":"EN"},"VN":{"countryCode":"VN","countryName":"Vietnam","mainLanguageCode":"VI"},"VU":{"countryCode":"VU","countryName":"Vanuatu","mainLanguageCode":"BI"},"WF":{"countryCode":"WF","countryName":"Wallis and Futuna","mainLanguageCode":"WL"},"WS":{"countryCode":"WS","countryName":"Samoa","mainLanguageCode":"SM"},"XK":{"countryCode":"XK","countryName":"Kosovo","mainLanguageCode":"SQ"},"YE":{"countryCode":"YE","countryName":"Yemen","mainLanguageCode":"AR"},"YT":{"countryCode":"YT","countryName":"Mayotte","mainLanguageCode":"FR"},"ZA":{"countryCode":"ZA","countryName":"South Africa","mainLanguageCode":"ZU"},"ZM":{"countryCode":"ZM","countryName":"Zambia","mainLanguageCode":"EN"},"ZW":{"countryCode":"ZW","countryName":"Zimbabwe","mainLanguageCode":