why does the items not appear in dropdown? I have an array which items I want to be on the dropdown:
const categoryDB = [
"Notebook",
"Desktop PC",
"Monitor"
]
My React/materialui element looks like the following:
<TextField style={tfBigStyling} select required="true" margin="normal" label="Category" size="medium">
{categoryDB.map((option) => (
<MenuItem key={option.value} value={option.value}>
{option.label}
</MenuItem>
))}</TextField>
But if I look at the website there's only the textfield with a empty dropdown list. What did I do wrong? How can I set those items of categoryDB as dropdown? Thanks in advance