I have a dropdown created with this statement:
<select
id="personState"
name="personState"
className="form-control dropDownStyle"
onChange={this.handleChange}
value={this.props.person.personState}
>
{this.state.stateCodes.map((option) => {
<option key={option.id} value={option.data}>{option.data}</option>
})}
</select>
With the debugger, I can see that this.state.stateCodes is getting populated with a two dimensional array that looks like this:
0:{id: 6408, data: "Arkansas"}
1:{id: 5555, data: "Wisconsin"}
However, no option values are getting added to the dropdown.