I have a const in render function like const arr = ["james","john"];
and in the return function I do
<select>
arr.map(item =>
<option>item</option>
)
</select>
What I see in the output is item, not the value of the array. Am I missing something? I want to populate the array value as options.