{options.map(function (selectOption) { var value = Object.values(selectOption); var key = Object.keys(selectOption); return ( <option key={value} value={value}> {key} </option> ); })} code example
Example: map index
array.map((currentelement, index) => {
});