This is a pretty old question but I just found it and wanted to throw in my two cents. I found several answers helpful and they led me to this answer which works for me. I was trying to populate a dropdown list for a user to select the state they live in. Here is my array of states:
const states = ["Alabama", "Alaska", "Arizona", "Arkansas", "California", "Colorado", "Connecticut", "Delaware", "District of Columbia", "Florida", "Georgia", "Guam", "Hawaii", "Idaho", "Illinois", "Indiana", "Iowa", "Kansas", "Kentucky", "Louisiana", "Maine", "Maryland", "Massachusetts", "Michigan", "Minnesota", "Mississippi", "Missouri", "Montana", "Nebraska", "Nevada", "New Hampshire", "New Jersey", "New Mexico", "New York", "North Carolina", "North Dakota", "Ohio", "Oklahoma", "Oregon", "Pennsylvania", "Puerto Rico", "Rhode Island", "South Carolina", "South Dakota", "Tennessee", "Texas", "Utah", "Vermont", "Virginia", "Washington", "West Virginia", "Wisconsin", "Wyoming"];
And this is the div that contains the select element in my .jsx
<div className="input-field">
<label htmlFor="addressState">addressState</label>
<select value={addressState} onChange={(event) => setAddressState(event.target.value)}>
{states.map((e,index) => <option key={index} value={e}>{e}</option>
)}
</select>
</div>
Hope that helps someone
P.S. I called the variable addressState to avoid confusion since React uses the word state a lot.