add useEffect to SettingSelect component

This commit is contained in:
[poww10s]
2020-09-05 05:20:41 -04:00
parent 4182330f0e
commit 81e951109f
+7
View File
@@ -19,6 +19,13 @@ 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);
};