This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// struggled to figure this out, hopefully this helps you! | |
// component | |
import { Select, MenuItem, FormControl } from '@material-ui/core' | |
const SelectRamen = () => ( | |
<FormControl id="select-ramen"> | |
<InputLabel>Pick Your Ramen</InputLabel> | |
<Select> | |
{options.map((opt, i) => <MenuItem key={i} value={opt}>{opt.name}</MenuItem>)} |