import React, { useState, useEffect } from "react"; import { makeStyles } from "@material-ui/styles"; import Select from "@material-ui/core/Select"; import MenuItem from "@material-ui/core/MenuItem"; import InputLabel from "@material-ui/core/InputLabel"; import FormControl from "@material-ui/core/FormControl"; const useStyles = makeStyles((theme) => ({ formControl: { margin: theme.spacing(1), minWidth: 120, }, selectEmpty: { marginTop: theme.spacing(2), }, })); export default function SettingSelect(props) { const classes = useStyles(); const [setting, updateSetting] = useState(""); useEffect( { //here we update the sysex / or the settings object when the value changes }, [setting] ); const handleChange = (e) => { updateSetting(e.target.value); }; return ( {props.name} ); }